-
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
multiple issues with verification on blockscout since version nightly-87bc53fc6c874bd4c92d97ed180b949e3a36d78c #4909
Comments
After some light digging: However, the blockscout response is:
and this is in the message field not the result field. There may be further issues. |
I confirm this issue. We're having exactly the same problem. Rolling back to |
@Evalir perhaps this is due to Evm versions or perhaps even something earlier |
I think it’s actually the request parameters being different.
I noticed constructorArguments is misspelled for etherscan and blockscout
doesn’t like that.
…On Fri, May 19, 2023 at 11:13 Matthias Seitz ***@***.***> wrote:
@Evalir <https://github.com/Evalir> perhaps this is due to Evm versions
ptal
—
Reply to this email directly, view it on GitHub
<#4909 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAGMCOBCOFLNFCGYC36PHLDXG6E2JANCNFSM6AAAAAAX3WE5BA>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
ack on this—will give it a closer look. The "good" binary is from quite a while ago so it could be a combination of things—I'd expect this to be a result of changes to the upstream APIs too |
Hey hey @oveddan & @iainnash — just wanted to let you know that we're fixing the rough edges we found, and I managed to reproduce your scroll deployment issue & patch it. As soon as ethers is bumped and merged into foundry this should be fixed. relevant pr: gakonst/ethers-rs#2426 (cc @gakonst ) For the "Deploying on a custom L2 chain and verifying on blockscout" issue, I could not reproduce. What custom L2 are y'all using? Is there any chance you could provide some minimal repro example/command I could just run and hunt down? This one seems much easier than the blockscout issue we were having, just need something to work with. Also, note that for recent nightlies you must have your EVM version set as |
@Evalir I have a public devnet that you can use here: https://app.conduit.xyz/published/view/initial-maroon-gull-l2q9o5k7zz The standard dev accounts have infinite eth. Example command I'm running that runs into an issue:
Counter.sol is just the bundled contract from |
awesome, thanks for that @kahuang. I've hunted down what seemed to be the last issue on blockscout-etherscan verification: gakonst/ethers-rs#2453 I've tested deploying quite a few contracts and verifying them across different chains including yours—but I can't seem to verify any contracts on your instance. The same contract with solc and evm version combo that works when verified on other chains doesn't work on yours. More accurately, it throws this error:
I think it might be that the instance is not configured properly—there are also some other features broken (search, for example). Is it possible for you to check? Happy to follow up as soon as you do. Also, note that you must not use a solidity version above 0.8.18, nor an evm version higher than london—verification won't work otherwise as your chain doesn't support these. I recommend setting these on your |
Should be fixed with the fixes on ethers. gakonst/ethers-rs#2453 & gakonst/ethers-rs#2426 |
@oveddan Could you try putting |
Still have this issue :( |
any fix for this? facing the same issue using a workaround which is to |
Component
Forge
Have you ensured that all of these are up to date?
What version of Foundry are you on?
forge 0.2.0 (43974b0 2023-05-09T00:17:51.920839000Z)
What command(s) is the bug in?
forge create
Operating System
macOS (Apple Silicon)
Describe the bug
When running
forge create
with the--verify
flag and a--verifier-url
on a custom chain, I get an error:ETHERSCAN_API_KEY must be set, even if I have set the flag
--etherscan-api-key
or setETHERSCAN_API_KEY
as an environment variable.If I add the --verify flag with a known chain that uses blockscout, I get an error on verification:
"Received error response: status=0,message=Contract source code not verified, result=None"
Deploying to Scroll Alpha
I believe scroll alpha's rpc url is a known chain. When deploying WETH contract to the scroll alpha chain and verifying it:
on latest nightly version:
This is the output:
If I go back to version
nightly-94777647f6ea5d34572a1b15c9b57e35b8c77b41
the issue goes away:Output:
Deploying on a custom L2 chain and verifying on blockscout
When running on a custom l2 chain that I believe forge doesn't recognize, with the latest version I always get the error.
Here is the command I run:
I always get an error on verification:
If I roll back to version
nightly-94777647f6ea5d34572a1b15c9b57e35b8c77b41
The command works successfully and my contract is verified.
The text was updated successfully, but these errors were encountered: