ERC20
How to deploy an ERC20 contract on a localnet.
Prerequisites
Run a localnet: Run locally
Initialize project directory
Clone the sample repo and compile the contracts.
git clone https://github.com/k-yang/evm-contracts.git
cd evm-contracts
npm install
# compile contract
npx hardhat compileIt will generate the compilation output under artifacts/. There's no need to look at these contents unless you're interested in low level EVM internals.
Deploy the contract
Next, we will deploy the MyToken.sol contract. You can take a look at scripts/ERC20/deploy.ts to see what the script executes.
Run the script:
Last updated
Was this helpful?