A smart contract written in Rust for an app initialized with create-near-app
Before you compile this code, you will need to install Rust with correct target
- The main smart contract code lives in
src/lib.rs
. You can compile it with the./compile
script. - Tests: You can run smart contract tests with the
./test
script. This runs standard Rust tests using cargo with a--nocapture
flag so that you can see any debug info you print to the console.