wighawag / hardhat-deploy

hardhat deployment plugin
MIT License
1.19k stars 292 forks source link

Plugin etherscan-verify is not being able to verify specific contracts with libraries. #340

Open TeamAtBigeyes opened 2 years ago

TeamAtBigeyes commented 2 years ago

Describe the bug If the lines from 37 to 39 of 08_deploy_token.js are commented out, etherscan-verify plugin is not able to verify the contract BigEyes.sol when run by command yarn verify:etherscan <network_name>.

image

To Reproduce Steps to reproduce the behavior:

  1. Comment lines from 37 to 39 of 08_deploy_token.js
  2. Run yarn deploy <network_name>
  3. Run yarn verify:etherscan <network_name>
  4. See the error:

Expected behavior The etherscan-verify plugin should be able to verify the contract as the hardhat task verify:verify does.

versions

Additional context The task verify:verify also checks for unnecessary libraries being linked, for example embedded and optional libraries reacting with an appropriate message.