Commit 95672da5 authored by Mark Tyneway's avatar Mark Tyneway Committed by GitHub

Merge pull request #8053 from ethereum-optimism/ctb/fdg-decouple

contracts-bedrock: decouple magic number in test
parents 0a47b6c3 081eebd9
...@@ -105,7 +105,7 @@ FaultDisputeGame_Test:test_extraData_succeeds() (gas: 32328) ...@@ -105,7 +105,7 @@ FaultDisputeGame_Test:test_extraData_succeeds() (gas: 32328)
FaultDisputeGame_Test:test_gameData_succeeds() (gas: 32777) FaultDisputeGame_Test:test_gameData_succeeds() (gas: 32777)
FaultDisputeGame_Test:test_gameType_succeeds() (gas: 8265) FaultDisputeGame_Test:test_gameType_succeeds() (gas: 8265)
FaultDisputeGame_Test:test_initialize_correctData_succeeds() (gas: 57646) FaultDisputeGame_Test:test_initialize_correctData_succeeds() (gas: 57646)
FaultDisputeGame_Test:test_initialize_firstOutput_reverts() (gas: 210650) FaultDisputeGame_Test:test_initialize_firstOutput_reverts() (gas: 213808)
FaultDisputeGame_Test:test_initialize_l1HeadTooOld_reverts() (gas: 228466) FaultDisputeGame_Test:test_initialize_l1HeadTooOld_reverts() (gas: 228466)
FaultDisputeGame_Test:test_move_clockCorrectness_succeeds() (gas: 594025) FaultDisputeGame_Test:test_move_clockCorrectness_succeeds() (gas: 594025)
FaultDisputeGame_Test:test_move_clockTimeExceeded_reverts() (gas: 23175) FaultDisputeGame_Test:test_move_clockTimeExceeded_reverts() (gas: 23175)
......
...@@ -139,8 +139,9 @@ contract FaultDisputeGame_Test is FaultDisputeGame_Init { ...@@ -139,8 +139,9 @@ contract FaultDisputeGame_Test is FaultDisputeGame_Init {
/// For now, it is critical that the first proposed output root of an OP stack /// For now, it is critical that the first proposed output root of an OP stack
/// chain is done so by an honest party. /// chain is done so by an honest party.
function test_initialize_firstOutput_reverts() public { function test_initialize_firstOutput_reverts() public {
uint256 submissionInterval = oracle.SUBMISSION_INTERVAL();
vm.expectRevert(abi.encodeWithSignature("Panic(uint256)", 0x11)); vm.expectRevert(abi.encodeWithSignature("Panic(uint256)", 0x11));
factory.create(GAME_TYPE, ROOT_CLAIM, abi.encode(1800, block.number - 1)); factory.create(GAME_TYPE, ROOT_CLAIM, abi.encode(submissionInterval, block.number - 1));
} }
/// @dev Tests that the `create` function reverts when the rootClaim does not disagree with the outcome. /// @dev Tests that the `create` function reverts when the rootClaim does not disagree with the outcome.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment