smart contracts for gitbounties
Build contracts
forge build
Start an anvil test net instance
anvil
Grab a private key that is outputted and run the following
PRIVATE_KEY=<private_key> just deploy-anvil
You can now use cast to interact with deployed contracts. For example, we can first mint a new NFT
cast send <nft-contract-addr> "mint()" --private-key <private_key>
Then we can check the owner of the NFT
cast call <nft-contract-addr> "ownerOf(uint256)" 1
- 6551piggybank: for a large part of the contract implementation