Skip to content

op-challenger: Support retrieving the oracle and prestate via game args.#17958

Merged
ajsutton merged 1 commit intodevelopfrom
aj/challenger-game-args
Oct 21, 2025
Merged

op-challenger: Support retrieving the oracle and prestate via game args.#17958
ajsutton merged 1 commit intodevelopfrom
aj/challenger-game-args

Conversation

@ajsutton
Copy link
Copy Markdown
Contributor

Description

The implementation contract doesn't always have the values embedded. It automatically switches between game args and reading from the implementation, as well as detecting versions that don't yet support game args for backwards compatibility.

The GetGameImpl method is now internal to DisputeGameFactory to ensure that nothing is grabbing the game implementation and depending on its behaviour. DisputeGameFactory exposes methods to get the VM or Prestate in a way that's compatible with game args.

Tests

Updated tests. Smoke test that detected this is now enabled.

Metadata

fixes #17810

@ajsutton ajsutton requested review from a team as code owners October 21, 2025 04:52
@ajsutton ajsutton force-pushed the aj/challenger-game-args branch from a0b693d to 7a375ce Compare October 21, 2025 10:51
Copy link
Copy Markdown
Contributor

@Inphi Inphi left a comment

Choose a reason for hiding this comment

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

Looks good.
Could we alsoupdate gamefactory_test.go to cover calls such as DisputeGameFactoryContract.GetGamePrestate for dispute-game v2 game args.

@ajsutton ajsutton force-pushed the aj/challenger-game-args branch from 7a375ce to 7b05004 Compare October 21, 2025 21:51
The implementation contract doesn't always have the values embedded.
@ajsutton ajsutton force-pushed the aj/challenger-game-args branch from 7b05004 to 3d16ff3 Compare October 21, 2025 22:45
@ajsutton ajsutton added this pull request to the merge queue Oct 21, 2025
Merged via the queue into develop with commit a3f8850 Oct 21, 2025
68 checks passed
@ajsutton ajsutton deleted the aj/challenger-game-args branch October 21, 2025 23:38
theochap pushed a commit that referenced this pull request Oct 22, 2025
…gs. (#17958)

The implementation contract doesn't always have the values embedded.
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.

Update op-challenger, dispute-mon to pull oracle correctly for v2 game contracts

3 participants