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
8e658809
Commit
8e658809
authored
Dec 12, 2023
by
clabby
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
@inphi review
parent
7d090bf9
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
2 deletions
+6
-2
OutputBisectionGame.t.sol
.../contracts-bedrock/test/dispute/OutputBisectionGame.t.sol
+3
-1
AlphabetVM2.sol
packages/contracts-bedrock/test/mocks/AlphabetVM2.sol
+3
-1
No files found.
packages/contracts-bedrock/test/dispute/OutputBisectionGame.t.sol
View file @
8e658809
...
...
@@ -1157,7 +1157,9 @@ contract OutputBisection_1v1_Actors_Test is OutputBisectionGame_Init {
while (true) {
// Allow the dishonest actor to make their moves, and then the honest actor.
(uint256 numMovesA,) = dishonest.move();
(uint256 numMovesB,) = honest.move();
(uint256 numMovesB, bool success) = honest.move();
require(success, "Honest actor's moves should always be successful");
// If both actors have run out of moves, we're done.
if (numMovesA == 0 && numMovesB == 0) break;
...
...
packages/contracts-bedrock/test/mocks/AlphabetVM2.sol
View file @
8e658809
...
...
@@ -31,7 +31,9 @@ contract AlphabetVM2 is IBigStepper {
uint256 claim;
if ((keccak256(_stateData) << 8) == (Claim.unwrap(ABSOLUTE_PRESTATE) << 8)) {
// If the state data is empty, then the absolute prestate is the claim.
(bytes32 dat,) = oracle.readPreimage(PreimageKeyLib.localizeIdent(4, _localContext), 0);
(bytes32 dat,) = oracle.readPreimage(
PreimageKeyLib.localizeIdent(LocalPreimageKey.STARTING_L2_BLOCK_NUMBER, _localContext), 0
);
uint256 startingL2BlockNumber = (uint256(dat) >> 128) & 0xFFFFFFFF;
traceIndex = startingL2BlockNumber << 4;
(uint256 absolutePrestateClaim) = abi.decode(_stateData, (uint256));
...
...
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