-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Error verifying contract on arb sepolia #6185
Comments
Ethers updated in #6191 |
Also cannot verify. We found that passing the Here is showing the error hunterking@hAL0x2328 od-contracts % forge verify-contract 0xDb21D9e5616AEc3fA365879eCf3A5765C96bb62b ODGovernor --etherscan-api-key XXX --chain-id 421614
Start verifying contract `0xdb21d9e5616aec3fa365879ecf3a5765c96bb62b` deployed on 421614
Error:
ETHERSCAN_API_KEY must be set And here is an example of the same script without the error when using hunterking@hAL0x2328 od-contracts % forge verify-contract 0xDb21D9e5616AEc3fA365879eCf3A5765C96bb62b ODGovernor --etherscan-api-key XXX --chain-id 421613
Start verifying contract `0xdb21d9e5616aec3fa365879ecf3a5765c96bb62b` deployed on arbitrum-goerli
Submitting verification for [src/contracts/gov/ODGovernor.sol:ODGovernor] "0xDb21D9e5616AEc3fA365879eCf3A5765C96bb62b".
Submitting verification for [src/contracts/gov/ODGovernor.sol:ODGovernor] "0xDb21D9e5616AEc3fA365879eCf3A5765C96bb62b".
Submitting verification for [src/contracts/gov/ODGovernor.sol:ODGovernor] "0xDb21D9e5616AEc3fA365879eCf3A5765C96bb62b".
Submitting verification for [src/contracts/gov/ODGovernor.sol:ODGovernor] "0xDb21D9e5616AEc3fA365879eCf3A5765C96bb62b".
// .... |
Can you retry after foundryup? The change was just released |
still seems to be the same error |
actually it just updated but gives a new error saying my api key is incorrect
|
Although I have just generated a new one to double check |
Can confirm error persists on latest nightly build
|
Actually I installed the wrong one. The error is gone now in Still some more testing to do but this is good progress. Thanks! |
I'm having this same issue, but I believe I am on the most up to date Foundry version. When doing Foundry Up my output is
My contract is the example followed at https://book.getfoundry.sh/tutorials/solmate-nft
The command used is:
The output log and error given is:
It seems that no matter what version of the compiler I use, it is impossible for me to verify it. Thank you for any help. |
Has this been resolved? |
Echo all comments above, has this been resolved yet? I'm seeing this same error (unable to verify a deployed contract) on multiple chains, |
@sarobinson2011 yes the fix for me to make a PR to ethers-rs to add the new chain info. If the chain stuff is there, make sure you are on the nightly version and also see if nightly uses the most recent ethers version |
I'm still seeing this same error for Arbitrum Sepolia and Aurora Testnet - I've run foundryup, am on the latest release. I can deploy and interact with contracts, but can't verify on anything but Ethereum Layer-1 testnets e.g. Sepolia. |
I am having the same error. Using arbitrum, even if verify-contract says OK. Nothing happens and when I try forge verify-check I get either Response: or Response: the first one is when I add arbiscan key to etherscan variable. the second one is when I dont do that. |
Component
Forge
Have you ensured that all of these are up to date?
What version of Foundry are you on?
0.2.0
What command(s) is the bug in?
forge verify-contract
Operating System
macOS (Apple Silicon)
Describe the bug
I cannot verify contract that has been deployed on arbitrum sepolia. I have tried using the cli arg and the environment variable for the etherscan api key.
I think it may have something to do with foundry not having the chain config for arbitrum sepolia yet which is now on the master branch of ethers-rs after my PR was merged yesterday
The text was updated successfully, but these errors were encountered: