Skip to content

contracts-bedrock: handle disabled cannon fork state#21621

Merged
wwared merged 1 commit into
developfrom
aj/fix/post-u19-fork-upgrade-tests
Jul 6, 2026
Merged

contracts-bedrock: handle disabled cannon fork state#21621
wwared merged 1 commit into
developfrom
aj/fix/post-u19-fork-upgrade-tests

Conversation

@ajsutton

@ajsutton ajsutton commented Jul 5, 2026

Copy link
Copy Markdown
Contributor

Updates the contracts fork test harness for post-U19 live network state.

U19 disables the legacy CANNON permissionless game on OP/Ink and leaves CANNON_KONA as the respected live game. The fork setup was still reading DelayedWETH and upgrade init bonds from CANNON, so fork upgrade tests could fail shared setup with invalid game configs.

This changes the harness to select the live permissionless game from AnchorStateRegistry first, fall back across known permissionless game types, and use a default nonzero permissionless init bond when simulating upgrade configs for a game type that is disabled on the live fork.

Validation:

  • mise exec -- forge build
  • mise exec -- just build-go-ffi
  • mise exec -- forge test --match-path test/L1/opcm/OPContractsManagerV2.t.sol --match-contract OPContractsManagerV2_Upgrade_Test (skips without FORK_TEST)

Full live-network just test-upgrade validation is left to CI because no local ETH_RPC_URL archive RPC is configured in this shell.

@ajsutton ajsutton force-pushed the aj/fix/post-u19-fork-upgrade-tests branch from 5cc4c2a to 29455df Compare July 5, 2026 21:52
@ajsutton ajsutton changed the title [codex] contracts-bedrock: handle disabled cannon fork state contracts-bedrock: handle disabled cannon fork state Jul 5, 2026
@ajsutton ajsutton force-pushed the aj/fix/post-u19-fork-upgrade-tests branch 9 times, most recently from 233d90f to 0d0cee4 Compare July 6, 2026 01:26
@ajsutton ajsutton force-pushed the aj/fix/post-u19-fork-upgrade-tests branch from 0d0cee4 to c665ea9 Compare July 6, 2026 01:41
@ajsutton ajsutton marked this pull request as ready for review July 6, 2026 02:47
@ajsutton ajsutton requested review from a team and Ethnical July 6, 2026 02:47
Comment thread packages/contracts-bedrock/test/setup/ForkL1Live.s.sol
@mds1 mds1 enabled auto-merge July 6, 2026 14:47
@mds1 mds1 added this pull request to the merge queue Jul 6, 2026
@github-merge-queue github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Jul 6, 2026
@wwared wwared added this pull request to the merge queue Jul 6, 2026
Merged via the queue into develop with commit 4cd1249 Jul 6, 2026
87 checks passed
@wwared wwared deleted the aj/fix/post-u19-fork-upgrade-tests branch July 6, 2026 16:13
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.

4 participants