yarn
Run hardhat-etherscan
yarn hardhat verify --network <NETWORK_NAME> <CONTRACT_ADDRESS>
- Create an arguments declaration file
// cat ./scripts/arguments.js
module.exports = [
'arguments 1',
'arguments 2',
'arguments 3',
...
]
- Run hardhat-etherscan
yarn hardhat verify --network <NETWORK_NAME> <CONTRACT_ADDRESS> --contract <PATH_TO_CONTRACT>:<CONTRACT_NAME> --constructor-args ./scripts/arguments.js