Repository navigation
fix(chains): add disputeGameFactory for fault-proof op stack chains - #5547
Merged
Merged
Conversation
These chains' L1 portals are on version 5.x, so getWithdrawalStatus, waitToProve and getTimeToProve take the fault-proof path and read contracts.disputeGameFactory. Without it they throw "Cannot read properties of undefined". Superseed pointed at a factory with no games, so every withdrawal stayed waiting-to-prove. Each address is what the chain's own portal returns from disputeGameFactory() on L1, and matches the superchain registry where the chain is listed. Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
@gomesalexandre is attempting to deploy a commit to the Wevm Team on Vercel. A member of the Team first needs to authorize it. |
🦋 Changeset detectedLatest commit: fcd4770 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
jxom
approved these changes
Nov 16, 2026
This was referenced Nov 16, 2026
Merged
Closed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
fix(chains): add disputeGameFactory for fault-proof op stack chains
Ancient8, BOB, Metal L2, Shape and Zircuit, plus the Ancient8 Sepolia, Mode Testnet, Superseed Sepolia, Zircuit Garfield and Zora Sepolia testnets, only define the legacy
l2OutputOracle. That satisfies the types ofgetWithdrawalStatus,waitToProveandgetTimeToProve. But their L1 portals are on version 5.x, so at runtime those actions take the fault-proof path, andgetGamesreadstargetChain.contracts.disputeGameFactory[chain.id]. For any withdrawal that isn't finalized yet this throwsTypeError: Cannot read properties of undefined (reading '1').Superseed does define a factory, but it's the one from before an OPCM upgrade and has 0 games, so every withdrawal stays
waiting-to-prove. The portal now uses0x657c...c7E7, created at block 22973334.Each address comes from the chain's own portal on L1,
disputeGameFactory()(0xf2b4e617on theportaladdress in the chain file), and every one of those factories has games (209 to 57k). For the chains in the superchain registry (BOB, Metal L2, Mode Testnet, Shape, Superseed, Zora Sepolia) it also matches the registry'sDisputeGameFactoryProxy. Ancient8 and Zircuit (mainnet and testnet) and Superseed Sepolia aren't in the registry, so the portal is the only source for them. This is the same shape as #4385, which did it for Lisk, Mode and Zora, andl2OutputOraclestays as it did there.Real calls against publicnode L1 and each chain's default L2 RPC, main vs this branch:
The bob one checks out on the portal:
provenWithdrawalshas a proof andfinalizedWithdrawalsis false. Finalized withdrawals return before the games lookup, so those worked already.No test, since the repo has no chain-definition test pattern and #4385 and #5512 shipped data-only too.
🤖 Generated with Claude Code