Skip to content

Template repository for using TypeScript and Solidity

License

Notifications You must be signed in to change notification settings

dev-protocol/template-repos-ts-sol

Repository files navigation

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