bug(forge verify-contract
): Unable to verify on explorer or sourcify while flattening works
#8470
Open
2 tasks done
Labels
C-forge
Command: forge
Cmd-forge-verify
Command: forge verify-contract/check
P-normal
Priority: normal
T-bug
Type: bug
T-to-investigate
Type: to investigate
Milestone
Component
Forge
Have you ensured that all of these are up to date?
What version of Foundry are you on?
forge 0.2.0 (f625d0f 2024-04-02T00:15:52.692780824Z)
What command(s) is the bug in?
forge verify-contract
Operating System
Linux
Describe the bug
TL;DR:
OptimismSettler
andArbitrumSettler
from 0xProject/0x-settler@ecd28b3 won't verify on their respective explorers or on Sourcify.I apologize that I don't have a more minimal repro. I tried comparing successfully-verified contracts (e.g.
LineaSettler
) against the unsuccessfully-verified contracts and can't find anything that stands out.I can't for the life of me get this contract to verify and I'm really at a loss about what specifically it is that's stopping it from being verified. I would workaround with
forge flatten
, but since the fix for #7554 hasn't landed yet, I can't try that. I'm reporting this as a bug due to 2 interesting observations:I put an older version of
forge
above, but I can also replicate this withforge 0.2.0 (f625d0f 2024-04-02T00:15:52.692780824Z)
. The version above is the one that I've pinned due to previous issues with contract verification, but now I've run in to an issue that I can't workaround.If you try this again with Arbitrum instead of Optimism, Arbiscan outright refuses verification because it doesn't like the Cancun hardfork. Sourcify still fails with a similar error message.
The other contract that is compiled from the same source file is
OptimismSettlerMetaTxn
(ArbitrumSettlerMetaTxn
) and its deployed address can be found by querying the same registry contract but withtokenId
3 instead of 2. (0x4DA7632F394F574576255A59b026841a700F0617
on Optimism)Thanks a lot for taking a look!
The text was updated successfully, but these errors were encountered: