Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Verifying contract is failing on rinkeby network #56

Closed
hecomp opened this issue Mar 2, 2022 · 15 comments
Closed

Verifying contract is failing on rinkeby network #56

hecomp opened this issue Mar 2, 2022 · 15 comments

Comments

@hecomp
Copy link

hecomp commented Mar 2, 2022

`Error in plugin @nomiclabs/hardhat-etherscan: The contract verification failed.
Reason: Fail - Unable to verify

For more info run Hardhat with --show-stack-traces
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.`

@h0rizons
Copy link

h0rizons commented Mar 3, 2022

I'm also getting the same issue using the most recent pull.

[Error - 9:40:12 PM] solc error: TypeError: solc.compileStandardWrapper is not a function
[Error - 9:40:12 PM] solc error: TypeError: solc.compileStandardWrapper is not a function

I had everything verifying perfectly on the version from around a week ago.

@h0rizons
Copy link

h0rizons commented Mar 3, 2022

I just downloaded the v1.0.1 that had initially been working for me, followed every step to the T, and I'm getting the verification failure on this build as well.

@hecomp
Copy link
Author

hecomp commented Mar 3, 2022

Yeah same here @h0rizons. Yesterday was flawless but today not so much everything else works minting, WL, Presale, Public Sale, reveal. I don't know if is rinkeby restriction for verification.

@liarco
Copy link
Member

liarco commented Mar 3, 2022

Hi @hecomp and @h0rizons,
thank you for letting me know about this, it might be related to NomicFoundation/hardhat#2437.

Can you please run the following command inside the /smart-contract folder and try again?

> yarn upgrade @nomiclabs/hardhat-etherscan

If this solves the issue we are gonna update the dependency and push a new commit to main. Thank you!

@liarco liarco added bug Something isn't working feedback requested To be closed if no feedback is received labels Mar 3, 2022
@liarco
Copy link
Member

liarco commented Mar 3, 2022

Sorry, I forgot to mention that you should also update the version number in the /smart-contract/package.json file before running yarn upgrade ...:

    "@nomiclabs/hardhat-etherscan": "^3.0.3",

@cptlchad
Copy link

cptlchad commented Mar 3, 2022

Was a problem on etherscan and is fixed now

@hecomp
Copy link
Author

hecomp commented Mar 3, 2022

@liarco @cptlchad I've tried and is working fine again. Thanks for the support and fix.

@liarco
Copy link
Member

liarco commented Mar 3, 2022

Thank you guys, gonna close this but feel free to open a new issue if anything strange happens again! 😉

@liarco liarco closed this as completed Mar 3, 2022
@liarco liarco removed bug Something isn't working feedback requested To be closed if no feedback is received labels Mar 3, 2022
@h0rizons
Copy link

h0rizons commented Mar 3, 2022

Hmm I'm still getting the error. I got it to successfully verify last night, and I tried again today with a new contract and I'm getting the error again. I tried your suggestions and got everything updated successfully, but it still isn't working. Thanks for your help - really appreciate it.

Error in plugin @nomiclabs/hardhat-etherscan: The contract verification failed. Reason: Fail - Unable to verify

@liarco
Copy link
Member

liarco commented Mar 3, 2022

Hi @h0rizons,
unfortunately we are all on the same boat. I'm busy testing #29 before merging it but I can't get my testing contracts to verify properly. It seems like the issue is on Etherscan side since other projects report the same thing and this happens without any change on our side: NomicFoundation/hardhat#2447

I'm afraid we just have to wait... 😞

@h0rizons
Copy link

h0rizons commented Mar 4, 2022

Sorry @liarco, I saw your earlier comment and thought that it was sorted.

So none of the versions will verify on rinkeby right now?

@liarco
Copy link
Member

liarco commented Mar 4, 2022

@h0rizons it was working until a few hours ago, but it might be Etherscan's fault here. The verification service is not working properly and chances are:

  1. Something is broken on Etherscan's side so they have to fix that
  2. The Hardhat library might need to be updated in order to fix this but as you can see from the issue I mentioned above they claim there is nothing wrong on their side and people should contact Etherscan

At the moment I got reports from users failing to verify on Rinkeby, not the Mainnet. But I haven't had the chance to test the Mainnet myself.

@liarco
Copy link
Member

liarco commented Mar 4, 2022

@h0rizons everything is working again on my side (nothing changed) so I think this has nothing to do with our code, nor the library. It's probably something wrong with Etherscan.

@hamhocks
Copy link

hamhocks commented Mar 8, 2022

I'm having the same problem plugin error but can't figure out if its hardhat or etherscan.

@liarco
Copy link
Member

liarco commented Mar 8, 2022

@hamhocks it's a known issue these days, the Hardhat team states it's not their fault (and it sounds possible since verification fails/succeeds randomly without any change in the code), so Etherscan seems to be the culprit here.

Here are some references to relevant issues:

Anyway this seems not related to our code specifically.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants