NewInitiaERC20.sol
InitiaCustomERC20
contract from the @initia/initia-evm-contracts
package.
InitiaCustomERC20
contract and add the constructor to initialize the contract with the name, symbol, and decimals of our custom ERC20. For this tutorial, we will simply customize the base contract by adding a logic to mint tokens to the contract deployer. during deployment.
forge compile
, we will get an error.
This is because the default Counter.t.sol
expects the original Counter.sol
contract to be available. To fix this, we will rename Counter.t.sol
to NewInitiaERC20.t.sol
.
forge compile
should work without any errors.
forge create
command
cast call
command.