Skip to content

fix: set pdg implementations to non-zero address on v2 codepath#806

Merged
0xiamflux merged 2 commits intosc-feat/opcm2-refactor-zero-address-pdgfrom
fix/opcm2-games-zero-address
Jan 21, 2026
Merged

fix: set pdg implementations to non-zero address on v2 codepath#806
0xiamflux merged 2 commits intosc-feat/opcm2-refactor-zero-address-pdgfrom
fix/opcm2-games-zero-address

Conversation

@0xiamflux
Copy link

@0xiamflux 0xiamflux commented Jan 20, 2026

Sets the Permission Dispute Game for OPCM v2 code path, sets the appropriate fault dispute game based on the respected game type selected when deploying the OP Chain. Also sets both the permissioned and permissionless delayed WETH impl to the same address as v2 code path deploys a single contract.

Closes OPT-1411

@0xiamflux 0xiamflux requested review from 0xOneTony and 0xniha January 20, 2026 01:16
@0xiamflux 0xiamflux self-assigned this Jan 20, 2026
@linear
Copy link

linear bot commented Jan 20, 2026

// We first find the respected game type, if it's a fault game we can set the faultDisputeGame to the respected
// game implementation, otherwise we set it to address(0).
// This is to account for scenarios where both fault games are enabled.
GameType respectedGameType = _chainContracts.anchorStateRegistry.respectedGameType();
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Per our discussion, decided to remove this and leave the faultDisputeGame in the output as address(0) which is consistent to how the OPCM v1 behaves.

@0xiamflux 0xiamflux merged commit 15576a5 into sc-feat/opcm2-refactor-zero-address-pdg Jan 21, 2026
1 check passed
@0xiamflux 0xiamflux deleted the fix/opcm2-games-zero-address branch January 21, 2026 17:59
@0xiamflux 0xiamflux changed the title fix: set fdg and pdg implementations to non-zero address on v2 codepath fix: set pdg implementations to non-zero address on v2 codepath Jan 21, 2026
0xOneTony pushed a commit that referenced this pull request Jan 23, 2026
…-optimism#18900)

* fix: set fdg and pdg implementations to non-zero address on v2 codepath (#806)

* fix: set fault and permission games implementations to non-zero address on v2 codepath

* chore: make faultDisputeGame 0 on DeployOPChain

* chore: remove unused import, just pr passing (#809)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants