NomicFoundation / hardhat

Hardhat is a development environment to compile, deploy, test, and debug your Ethereum software.
https://hardhat.org
Other
7.04k stars 1.36k forks source link

error while verifying the smart contract on polygon-amoy network #5374

Closed block98ct closed 3 weeks ago

block98ct commented 1 month ago

You can manually add support for it by following these instructions: https://hardhat.org/verify-custom-networks

To see the list of supported networks, run this command:

npx hardhat verify --list-networks hardhat-verify found one or more errors during the verification process:

Etherscan: Trying to verify a contract in a network with chain id 80002, but the plugin doesn't recognize it as a supported chain.

You can manually add support for it by following these instructions: https://hardhat.org/verify-custom-networks

To see the list of supported networks, run this command:

npx hardhat verify --list-networks

i have checked the list networks but there is no polygon-amoy network

schaable commented 3 weeks ago

Polygon Amoy is indeed a supported network, so you don't need to add it as a custom network. See here.

If you run hh verify --list-networks, you'll see: image

It was added in version 2.0.7 of the hardhat-verify plugin. Maybe you're using an older version?