A web3 counter program built with Anchor
git clonethe repo- Make sure you have
solana-cliinstalled, keypair configured, and at least 2 sol on devnet beforehand - Update path to your keypair in
Anchor.tomlthat begins withwallet = - Run
anchor buildto build the programs - We need to update the program IDs:
- Run
solana-keygen pubkey ./target/deploy/anchor_counter_program.json- replace the old prog ID (BNoJPjrAtDJNhynak4rYUtUbGytaSJrRKpdg6iHxgzbs) with the newly generated prog ID in the following locations:./Anchor.toml./programs/anchor_counter_program/src/lib.rs./src/index.ts
- Run
- Run
anchor buildto build one more time - (!) IMPORTANT - run
yarninside the root of the repo - Run
anchor testto test