Ropsten Testnet contract: https://rinkeby.etherscan.io/address/0x9a7cd3998b8c04f7e833c263085e2c04e18a18b2#code
- Soulbound ERC20: minted tokens cannot be transferred
- Limitless minting
- Mint can be done only by minter role
- Call
setApprovedMinter
to set a new minter
forge init
forge build
forge test
VERY IMPORTANT: DO NOT SHARE YOUR PRIVATE KEY WITH ANYONE and check that they are not on your github project. Use a test wallet to do this.
More info about the Deployment command on the Foundry book documentation site.
We are going to deploy this contract on Rinkeby testnet. In order to do that you need to get an RCP_URL from Alchemy or Infura. Replace YOUR_RINKEBY_RCP_URL
with your own.
forge create --rpc-url YOUR_RINKEBY_RCP_URL --private-key YOUR_PRIVATE_KEY src/Exp.sol:Exp
More info about the Verifying command on the Foundry book documentation site.
We have deployed our contract on Rinkeby. That's why the chain-id
is set to 4
in the verify-contract
command.
YOUR_CONTRACT_ADDRESS
will be the address of the contract on the chain you have deployed it.
forge verify-contract --chain-id 4 YOUR_CONTRACT_ADDRESS src/Exp.sol:Exp YOUR_ETHERSCAN_API_KEY