Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
N
nebula
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
exchain
nebula
Commits
95672da5
Unverified
Commit
95672da5
authored
Nov 06, 2023
by
Mark Tyneway
Committed by
GitHub
Nov 06, 2023
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #8053 from ethereum-optimism/ctb/fdg-decouple
contracts-bedrock: decouple magic number in test
parents
0a47b6c3
081eebd9
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
2 deletions
+3
-2
.gas-snapshot
packages/contracts-bedrock/.gas-snapshot
+1
-1
FaultDisputeGame.t.sol
packages/contracts-bedrock/test/FaultDisputeGame.t.sol
+2
-1
No files found.
packages/contracts-bedrock/.gas-snapshot
View file @
95672da5
...
@@ -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: 21
0650
)
FaultDisputeGame_Test:test_initialize_firstOutput_reverts() (gas: 21
3808
)
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)
...
...
packages/contracts-bedrock/test/FaultDisputeGame.t.sol
View file @
95672da5
...
@@ -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.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment