Search code examples
ethereumsoliditysmartcontractshardhat

Error in plugin @nomiclabs/hardhat-etherscan: Error! Missing Or invalid Module name


I tried to verify my contract with constructor arguments but hardhat throwing that error everytime

npx hardhat verify --network rinkeby 0x50a45120252c2FeeD06915F46D8Fbabec1a008df "TestSmartContract" "TSC" "my_ipfs_link1" "my_ipfs_link2"

these arguments is same as my contract's arguments enter image description here


Solution

  • Downgrade the plugin version to 3.0.1 like this solves the issue:

    npm i -s @nomiclabs/hardhat-etherscan@3.0.1