-
Notifications
You must be signed in to change notification settings - Fork 397
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
Contract verification Fails after deployment #83
Comments
@liarco Thank you so much for everything that you are doing! I am using the same node version as in the video 14.18.2 and the same version of hardhat-etherscan(3.0.3) as in the repo. |
Did you change anything (price/name/amount etc etc) after deploying and before verification? I had the same problem ;) |
I did not change anything after the contract was deployed. I remade the process many times without success. Did you receive the same error? |
Hi everyone! @theo-raducanu and @firmol, the Rinkeby version of Etherscan is performing really bad these days. Contracts verification is failing very often. Unfortunately we just have to wait and try again later. I think they might be struggling under an higher amount of verification requests. @negaunee042 files in |
Thanks bro. I tried helping, I see you are probably insanely busy lol. How do we run the coinmarket cap gas price checker? I uploaded the api. Honestly I didn't even wanna ask cuz I know how busy you are. |
Thank you so much for your response. I guess I'll try again later. That was my suspicion, but I was not sure. |
@negaunee042 thank for your help, I appreciate it. You can use @theo-raducanu you are welcome, I totally understand that because it really seems that the issue is on the code side... that's really annoying. 😞 |
Liarco and Theo 100% right. I deployed to Ropsten and verified almost instantly. Just add your moralis API key if you haven't already, then you may have to add this to the hardhat.config.ts file under api key for etherscan. ropsten: process.env.BLOCK_EXPLORER_API_KEY, |
@liarco |
Yes it is in the files. You will have to load each contract 1 by 1. Since the contracts import other contracts, you will have to upload 14 manually I think(if you used the give erc721). |
Where do you add the moralis API key? I added it in the .env file to BLOCK_EXPLORER_API_KEY= It deploys the contract, but I still get an error on verify. |
just wanted to apologize for posting the same issue as seen here. I was unaware there were pinned issues on Github, and I have been on GitHub for over a year. So not only did you help build this amazing project, but you also taught me something about Github. I have also been attempting to upload to rinkeby, so thank you for answering the question that rinkeby is having issues. keep up the good work! |
I tried adding the line and verifying but I keep getting this: or Error in plugin @nomiclabs/hardhat-etherscan: The address 0x7fF95DeB217cF53BE0251FFa2d68a55a3C87Be9f has no bytecode. Is the contract deployed to this network? Is there anything else you had to configure? I got it deployed to ropsten successfully. |
Yeah you have to add ropsten API like I showed above. I'll go on my pc
quick
…On Mon, Mar 7, 2022, 10:36 PM DoodledPunks-Ken ***@***.***> wrote:
Liarco and Theo 100% right. I deployed to Ropsten and verified almost
instantly. Just add your moralis API key if you haven't already, then you
may have to add this to the hardhat.config.ts file under api key for
etherscan. ropsten: process.env.BLOCK_EXPLORER_API_KEY,
I tried adding the line and verifying but I keep getting this:
Error HH100: Network ropsten doesn't exist
or
Error in plugin @nomiclabs/hardhat-etherscan: The address
0x7fF95DeB217cF53BE0251FFa2d68a55a3C87Be9f has no bytecode. Is the contract
deployed to this network?
The selected network is truffle.
Is there anything else you had to configure? I got it deployed to ropsten
successfully.
—
Reply to this email directly, view it on GitHub
<#83 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AXKTY32J3G5Q7SEYEFWRNWLU63DMXANCNFSM5QDZZX3A>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
then just do ......rify "contract" --network testnet |
I don't use truffle, but it looks like your second error code comes from deploying to the wrong network |
I just verified the contract today on Rinkeby with no issues. |
Yes, problem solved, it was the Rinkeby network, today the contract was verified without issues. Thanks. :-) |
Hi im been trying to verify my contract on ETH mainnet for always failed but the same contract worked fine and was verified on rinkeby Error in plugin @nomiclabs/hardhat-etherscan: The contract verification failed. For more info run Hardhat with --show-stack-traces thanks |
Hi @lbastian10, you might have changed something in your project after deployment, for example:
Remember that you should verify your contract immediately after deployment and ensure you are using the same exact configuration. Whenever you change something before verifying it can be a nightmare to get back to the previous situation in order to verify correctly. With same code, same configuration and a valid API key, everything should work fine. |
Hello. The command “Yarn Verify” does not appear to be a valid command to verify the contract. I’ve searched all over the internet and have tried installing various applications that can’t be found. What is the correct command for contract verification? |
are you sure you're in the smart-contract directory, cd smart-contract then run. yarn verify ContractAddress --network truffle |
I was not in the directory actually. Ran it this time with your step but now I’m receiving a new error “ Error in plugin @nomiclabs/hardhat-etherscan: The selected network is hardhat. Please select a network supported by Etherscan.” The network I am selecting Is truffle not hard hat |
I’m not sure if I’ve missed a dependency or I’m not defining the network somewhere. I keep getting an error that the network doesn’t exist |
@hakufred please follow the instructions in my videos (at least from episode |
Hello there! I watched episode 3 but it seems to have been a breakdown of the folder structure. My issue I am having has to do with them set up of some of these plugins. Is there anyway I can manually verify this on BSC scan? What exactly are the 14 files needed to verify? |
hey @liarco, I followed the steps from the video and got this error, I am using mbp m1 max, can you help me here? thanks in advance! |
I followed the exact steps from the latest video https://youtu.be/Zhmj4PiJ-GA?t=4136 , I deployed successfully the contract to Rinkeby, but when it comes to the verification of the contract is taking quite a while and after that the verification fails.
Can this be a problem with Etherscan?
The text was updated successfully, but these errors were encountered: