Skip to content

Commit 2256be9

Browse files
test fix
1 parent 87a3a95 commit 2256be9

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

packages/contracts-bedrock/test/L1/OptimismPortal2.t.sol

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -672,13 +672,15 @@ contract OptimismPortal2_FinalizeWithdrawal_Test is CommonTest {
672672
_withdrawalProof: _withdrawalProof
673673
});
674674

675+
// Create a new game.
676+
IDisputeGame newGame =
677+
disputeGameFactory.create(GameType.wrap(0), Claim.wrap(_outputRoot), abi.encode(_proposedBlockNumber + 1));
678+
675679
// Update the respected game type to 0xbeef.
676680
vm.prank(optimismPortal2.guardian());
677681
optimismPortal2.setRespectedGameType(GameType.wrap(0xbeef));
678682

679683
// Create a new game and mock the game type as 0xbeef in the factory.
680-
IDisputeGame newGame =
681-
disputeGameFactory.create(GameType.wrap(0), Claim.wrap(_outputRoot), abi.encode(_proposedBlockNumber + 1));
682684
vm.mockCall(
683685
address(disputeGameFactory),
684686
abi.encodeCall(disputeGameFactory.gameAtIndex, (_proposedGameIndex + 1)),

0 commit comments

Comments
 (0)