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
93c1f62e
Commit
93c1f62e
authored
Jul 17, 2023
by
clabby
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
chore: lint
parent
d8e4fca4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
3 deletions
+15
-3
FaultDisputeGame.t.sol
...s/contracts-bedrock/contracts/test/FaultDisputeGame.t.sol
+15
-3
No files found.
packages/contracts-bedrock/contracts/test/FaultDisputeGame.t.sol
View file @
93c1f62e
...
...
@@ -771,7 +771,11 @@ contract FaultDisputeGame_ResolvesCorrectly_IncorrectRootFuzz is OneVsOne_Arena
uint256 snapshot = vm.snapshot();
GamePlayer honest = new HonestPlayer(ABSOLUTE_PRESTATE);
GamePlayer dishonest = new VariableDivergentPlayer(ABSOLUTE_PRESTATE, _dishonestTraceLength, i);
GamePlayer dishonest = new VariableDivergentPlayer(
ABSOLUTE_PRESTATE,
_dishonestTraceLength,
i
);
super.init(dishonest, honest, _dishonestTraceLength - 1);
// Play the game until a step is forced.
...
...
@@ -798,7 +802,11 @@ contract FaultDisputeGame_ResolvesCorrectly_CorrectRootFuzz is OneVsOne_Arena {
uint256 snapshot = vm.snapshot();
GamePlayer honest = new HonestPlayer(ABSOLUTE_PRESTATE);
GamePlayer dishonest = new VariableDivergentPlayer(ABSOLUTE_PRESTATE, _dishonestTraceLength, i);
GamePlayer dishonest = new VariableDivergentPlayer(
ABSOLUTE_PRESTATE,
_dishonestTraceLength,
i
);
super.init(honest, dishonest, 15);
// Play the game until a step is forced.
...
...
@@ -855,7 +863,11 @@ contract HonestPlayer_QuarterTrace is GamePlayer {
}
contract VariableDivergentPlayer is GamePlayer {
constructor(bytes memory _absolutePrestate, uint256 _traceLength, uint256 _divergeAt) {
constructor(
bytes memory _absolutePrestate,
uint256 _traceLength,
uint256 _divergeAt
) {
uint8 absolutePrestate = uint8(_absolutePrestate[31]);
bytes memory _trace = new bytes(_traceLength);
for (uint8 i = 0; i < _trace.length; i++) {
...
...
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