Skip to content

Conversation

@DeVikingMark
Copy link

Description

Implements the TODO in Deploy.s.sol by adding support for loading Asterisc absolute prestate from OP stack deploy configuration. Previously, the loadRiscvAbsolutePrestate() function would revert for non-devnet chains. Now it reads faultGameAbsolutePrestate from the deploy config, enabling Asterisc fault proof deployments on production networks.

Changes:

  • Replace revert() with cfg.faultGameAbsolutePrestate() call for production networks
  • Add proper logging to track prestate source
  • Make implementation consistent with Deploy_Stage_1_4.sol

Tests

The implementation follows the exact same pattern as Deploy_Stage_1_4.sol which is already deployed and working on op-sepolia and op-mainnet networks. The cfg.faultGameAbsolutePrestate() method is well-tested in the existing codebase and deploy configs are already in place for production networks.

Additional context

Metadata

Resolves TODO comment in rvsol/scripts/Deploy.s.sol:89

@DeVikingMark DeVikingMark requested a review from a team as a code owner May 25, 2025 09:53
@DeVikingMark DeVikingMark requested review from stevennevins and removed request for a team May 25, 2025 09:53
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.

1 participant