From 928bcd20d4d31addd5f036d296593a962f17395d Mon Sep 17 00:00:00 2001 From: Willem Wyndham Date: Thu, 5 Oct 2023 13:56:13 -0400 Subject: [PATCH] fix: allowing running with go and fix storage issue for counter --- cmd/crates/soroban-spec-typescript/ts-tests/.env | 1 - cmd/crates/soroban-spec-typescript/ts-tests/package-lock.json | 2 +- cmd/crates/soroban-spec-typescript/ts-tests/package.json | 2 +- .../tests/fixtures/test-wasms/hello_world/src/lib.rs | 2 +- 4 files changed, 3 insertions(+), 4 deletions(-) diff --git a/cmd/crates/soroban-spec-typescript/ts-tests/.env b/cmd/crates/soroban-spec-typescript/ts-tests/.env index b86805d8d..e69de29bb 100644 --- a/cmd/crates/soroban-spec-typescript/ts-tests/.env +++ b/cmd/crates/soroban-spec-typescript/ts-tests/.env @@ -1 +0,0 @@ -SOROBAN_NETWORK=standalone \ No newline at end of file diff --git a/cmd/crates/soroban-spec-typescript/ts-tests/package-lock.json b/cmd/crates/soroban-spec-typescript/ts-tests/package-lock.json index 1b8443ef6..20622f5c9 100644 --- a/cmd/crates/soroban-spec-typescript/ts-tests/package-lock.json +++ b/cmd/crates/soroban-spec-typescript/ts-tests/package-lock.json @@ -13,7 +13,7 @@ "typescript": "^5.1.6" }, "engines": { - "node": ">=20.6.0", + "node": ">=20.0.0", "npm": ">=9.8.1" } }, diff --git a/cmd/crates/soroban-spec-typescript/ts-tests/package.json b/cmd/crates/soroban-spec-typescript/ts-tests/package.json index 878f056b9..d246fee5c 100644 --- a/cmd/crates/soroban-spec-typescript/ts-tests/package.json +++ b/cmd/crates/soroban-spec-typescript/ts-tests/package.json @@ -28,7 +28,7 @@ } }, "engines": { - "node": ">=20.6.0", + "node": ">=20.0.0", "npm": ">=9.8.1" } } diff --git a/cmd/crates/soroban-test/tests/fixtures/test-wasms/hello_world/src/lib.rs b/cmd/crates/soroban-test/tests/fixtures/test-wasms/hello_world/src/lib.rs index 6619ade69..922721471 100644 --- a/cmd/crates/soroban-test/tests/fixtures/test-wasms/hello_world/src/lib.rs +++ b/cmd/crates/soroban-test/tests/fixtures/test-wasms/hello_world/src/lib.rs @@ -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