Day 8 of RareSkills Solana Course.
- Configure Solana to run on localhost:
solana config set --url localhost
- Run the test validator node on another terminal:
solana-test-validator
- Run Solana logs on another terminal:
solana logs
- Build Anchor program:
anchor build
- Sync program_id with Anchor key:
anchor keys sync
- Run tests:
anchor test --skip-local-validator
- Rust functions cannot accept an arbitrary number of arguments.
- Rust
function-like macros
are identified by the presence of a!
symbol.- examples are:
println!()
msg!()
- examples are:
- A Rust
macro
takes Rust code as input and programatically expands it into more Rust code.