Skip to content

Commit

Permalink
public l2 block num to uint
Browse files Browse the repository at this point in the history
  • Loading branch information
zobront committed Jun 28, 2024
1 parent c08f1f5 commit 1d4b1bf
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,6 @@ contract OptimisticZKGame is IOptimisticZKGame, Clone, SP1Verifier {
if (challenge.left.outputRoot.l2BlockNumber + 1 != challenge.right.outputRoot.l2BlockNumber) revert NotReadyToProve();

// Validate public values passed to the verifier...

// 1) The real left root of the game matches the passed l2PreRoot.
if (challenge.left.outputRoot.root.raw() != _publicValues.l2PreRoot) revert InvalidPublicInput();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ interface IOptimisticZKGame is IBlockDisputeGame {
bytes32 l1Head;
bytes32 l2PreRoot;
bytes32 l2PostRoot;
bytes32 l2BlockNumber;
uint256 l2BlockNumber;
}

error Unauthorized();
Expand Down

0 comments on commit 1d4b1bf

Please sign in to comment.