NomicFoundation / hardhat

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

verification on etherscan doesn't work for holesky #5459

Open novaknole opened 6 days ago

novaknole commented 6 days ago

Version of Hardhat

2.22.3

What happened?

Hi.

I am trying to deploy on holesky testnet.

For the etherscan configuration via hardhat, I use the following:

{
        network: 'holesky',
        chainId: 17000,
        urls: {
          apiURL: 'https://api-holesky.etherscan.io/api',
          browserURL: 'https://holesky.etherscan.io',
        },
}

It turns out contracts get verified successfully except one contract which is deployed inside another contract via new keyword. Etherscan verification results in:

Reason: Fail - Unable to verify. Compiled contract deployment bytecode does NOT match the transaction deployment bytecode.

Does anyone know why ? Exact same thing successfuly gets verified on sepolia. I even tried using etherscan manually, but same thing.