-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
hardhat-etherscan fails contract verification on fantom testnet #2209
Comments
Same problem here, I'm not capable to verify contracts. |
I have exact same issue, but on Mumbai Polygon. Any import will result to |
I am having the same issue here on Mumbai Polygon. I think it could be having issues returning and I think a catch might be missing within the contract because when
When I jump into deployed it looks like this call is failing also I noticed that the compiled typescript doesn't catch this failed promise
|
Same problem here trying to verify on testnet.ftmscan.com |
There's a known issue with ftmscan.com. The etherscan/ftmscan team is already aware of this and deployed a patch. It may take some time to stabilize. |
@alcuadrado updated some packages today but still ran into the same issue. I think this issue is probably affecting your current issue log it looks to me like these: Might all be related. Also, I would like to suggest more robust error handling might help to communicate to devs more about the issue if they run into it. I will have more time over the weekend happy to take a look and possibly suggest some changes. |
Same problem here. |
Still issues with Fantom testnet |
This issue was marked as stale because it didn't have any activity in the last 30 days. If you think it's still relevant, please leave a comment indicating so. Otherwise, it will be closed in 7 days. |
Same here. Fuji works fine, but FTM Testnet does not. |
This issue was marked as stale because it didn't have any activity in the last 30 days. If you think it's still relevant, please leave a comment indicating so. Otherwise, it will be closed in 7 days. |
This issue was closed because it has been stalled for 7 days with no activity. |
Hello @alcuadrado can you please link the issue at etherscan/ftmscan ? thanks a lot |
I'm running into the following issue when trying to verify any contract code on testnet.ftmscan.com using the etherscan plugin. I found users with the same issue on Discord, but couldn't find any solution there. I'm 100% sure I'm using the same commit deployed when trying to verify, and this process works smoothly when I try it on rinkeby.
npx hardhat verify --network fantomtestnet "<deployed_address>" ""
Nothing to compile
No need to generate any newer typings.
Compiling 1 file with 0.8.9
Successfully submitted source code for contract
contracts/XYZ at <deployed_address>
for verification on Etherscan. Waiting for verification result...
We tried verifying your contract XYZ without including any unrelated one, but it failed.
Trying again with the full solc input used to compile and deploy it.
This means that unrelated contracts may be displayed on Etherscan...
Successfully submitted source code for contract
contracts/XYZ at <deployed_address>
for verification on Etherscan. Waiting for verification result...
Error in plugin @nomiclabs/hardhat-etherscan: The contract verification failed.
Reason: Fail - Unable to verify
The text was updated successfully, but these errors were encountered: