Counter written in Solana native, using only the Solana toolchain.
- Build the program:
cargo build-sbf --manifest-path=./program/Cargo.toml - Run the Rust + LiteSVM tests:
cargo test --manifest-path=./program/Cargo.toml
Rebuild the program after every change before re-running the tests: the tests embed the .so at compile time, so a stale binary silently tests old code.
- Start a test validator:
solana-test-validator - Listen to program logs:
solana config set -ul && solana logs