Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 6 additions & 3 deletions .docs/contributing-book/theme/highlight.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ walk(e){return this.constructor._walk(e,this.rootNode)}static _walk(e,t){
return"string"==typeof t?e.addText(t):t.children&&(e.openNode(t),
t.children.forEach((t=>this._walk(e,t))),e.closeNode(t)),e}static _collapse(e){
"string"!=typeof e&&e.children&&(e.children.every((e=>"string"==typeof e))?e.children=[e.children.join("")]:e.children.forEach((e=>{
l._collapse(e)})))}}class c extends l{constructor(e){super(),this.options=e}
l._collapse(e)})))}}class CodeHighlighter extends l{constructor(e){super(),this.options=e}
addKeyword(e,t){""!==e&&(this.openNode(t),this.addText(e),this.closeNode())}
addText(e){""!==e&&this.add(e)}addSublanguage(e,t){const n=e.root
;n.kind=t,n.sublanguage=!0,this.add(n)}toHTML(){
Expand Down Expand Up @@ -193,7 +193,10 @@ const n=y.classNameAliases[e]||e;S.addKeyword(t[0],n)}}else n+=t[0]
;e=v.keywordPatternRe.lastIndex,t=v.keywordPatternRe.exec(R)}var s
;n+=R.substr(e),S.addText(n)}function u(){null!=v.subLanguage?(()=>{
if(""===R)return;let e=null;if("string"==typeof v.subLanguage){
if(!t[v.subLanguage])return void S.addText(R)
if (!t[v.subLanguage]) {
S.addText(R);
return;
}
;e=E(v.subLanguage,R,!0,O[v.subLanguage]),O[v.subLanguage]=e._top
}else e=_(R,v.subLanguage.length?v.subLanguage:null)
;v.relevance>0&&(M+=e.relevance),S.addSublanguage(e._emitter,e.language)
Expand Down Expand Up @@ -389,4 +392,4 @@ beginKeywords:"true false null"
});const se=te;for(const e of Object.keys(ne)){
const t=e.replace("grmr_","").replace("_","-");se.registerLanguage(t,ne[e])}
return se}()
;"object"==typeof exports&&"undefined"!=typeof module&&(module.exports=hljs);
;"object"==typeof exports&&"undefined"!=typeof module&&(module.exports=hljs);
2 changes: 1 addition & 1 deletion DAO/DAO-contract/tests/functions/info/user_votes.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
use crate::utils::{interface::info::user_votes, setup::setup};

mod sucess {
mod success {
use super::*;
use crate::utils::{
interface::core::{constructor, create_proposal, deposit, vote},
Expand Down
2 changes: 1 addition & 1 deletion TicTacToe/tictactoe-contract/src/main.sw
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ impl Game for Contract {
storage.player_turn.write(Some(player_one));
}

// Detemine if there is a winner or if it is a draw
// Determine if there is a winner or if it is a draw
if (current_move_counter > 4) {
let mut board = storage.board.load_vec();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ mod success {
};

#[tokio::test]
async fn initalizes() {
async fn initializes() {
let (deploy_wallet, wallet1, wallet2, wallet3, asset_id) = setup().await;
let (_, _, _, admin, _, num_leaves, asset_supply, _, claim_time, _, _) =
defaults(&deploy_wallet, &wallet1, &wallet2, &wallet3).await;
Expand Down
2 changes: 1 addition & 1 deletion native-asset/native-asset-contract/src/main.sw
Original file line number Diff line number Diff line change
Expand Up @@ -491,7 +491,7 @@ impl Constructor for Contract {
///
/// * When ownership has been set before.
///
/// # Number of Storage Acesses
/// # Number of Storage Accesses
///
/// * Reads: `1`
/// * Write: `1`
Expand Down