Skip to content

Commit

Permalink
fix: allowing running with go and fix storage issue for counter
Browse files Browse the repository at this point in the history
  • Loading branch information
willemneal committed Oct 5, 2023
1 parent 1cf7ab5 commit 928bcd2
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 4 deletions.
1 change: 0 additions & 1 deletion cmd/crates/soroban-spec-typescript/ts-tests/.env
Original file line number Diff line number Diff line change
@@ -1 +0,0 @@
SOROBAN_NETWORK=standalone

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion cmd/crates/soroban-spec-typescript/ts-tests/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
}
},
"engines": {
"node": ">=20.6.0",
"node": ">=20.0.0",
"npm": ">=9.8.1"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ impl Contract {

// get current count
pub fn get_count(env: Env) -> u32 {
env.storage().temporary().get(&COUNTER).unwrap_or(0)
env.storage().persistent().get(&COUNTER).unwrap_or(0)
}

// increment count and return new one
Expand Down

0 comments on commit 928bcd2

Please sign in to comment.