Skip to content

Latest commit

 

History

History
37 lines (26 loc) · 634 Bytes

README.md

File metadata and controls

37 lines (26 loc) · 634 Bytes

template-repos-ts-sol

Installation

yarn

Verifying a deployed contracts

For a contract with no constructor arguments

Run hardhat-etherscan

yarn hardhat verify --network <NETWORK_NAME> <CONTRACT_ADDRESS>

For a contract with constructor arguments

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