Day 5 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
- Deploy Anchor program:
anchor deploy
- Sync program_id with Anchor key:
anchor keys sync
- Run tests:
anchor test --skip-local-validator --skip-deploy
- Solana programs don't have
constructors
. - Solana programs are
mutable (upgradeable)
by default.- Solana doesn't need
delegatecall
, since programs can be upgraded.
- Solana doesn't need
- Solana programs don't have
immutable variables
.