smart contracts for gitbounties
Build contracts
forge buildStart an anvil test net instance
anvilGrab a private key that is outputted and run the following
PRIVATE_KEY=<private_key> just deploy-anvilYou 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