One of the simplest Rust smart contracts is the [Rust Counter](https://github.com/near-examples/rust-counter).
While there will be iterations of the Sandbox, let's aim for having a simple Sandbox test demonstration for this repository. As mentioned in #483 the test file(s) will live in:
tests/sandbox
and will be run during cargo test.
It should download the Sandbox binary, start the Sandbox node, wait for it to be operational, then deploy the Rust Counter Wasm binary to an account, run a function like increment, check that the value is 1, patch state so the number is 19, then call increment again and ensure the value is 20.
One of the simplest Rust smart contracts is the [Rust Counter](https://github.com/near-examples/rust-counter). While there will be iterations of the Sandbox, let's aim for having a simple Sandbox test demonstration for this repository. As mentioned in #483 the test file(s) will live in:
tests/sandbox
and will be run during
cargo test
.It should download the Sandbox binary, start the Sandbox node, wait for it to be operational, then deploy the Rust Counter Wasm binary to an account, run a function like
increment
, check that the value is1
, patch state so the number is19
, then callincrement
again and ensure the value is20
.