Uses Hardhat, as recommended in OpenZeppelin's Deploying and interacting guide.
cp .env.example .env
and adaptnpx hardhat run scripts/deploy.js --network <rinkeby|mainnet>
[signer] = await ethers.getSigners()
contract = new ethers.Contract(address, abi, signer)
contract.pause()
contact.unpause()
- Set
ETHERSCAN_API_KEY
in your.env
file - Run
npx hardhat verify --network <rinkeby|mainnet> <contract address> "<TOKEN_NAME>" "<TOKEN_SYMBOL>" "<TOKEN_INITIAL_SUPPLY>" "<TARGET_OWNER>"