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
40af4dcf
Unverified
Commit
40af4dcf
authored
Jun 29, 2023
by
OptimismBot
Committed by
GitHub
Jun 29, 2023
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #6209 from ethereum-optimism/refcell/fixprestate
fix(op-challenger): Post-state game nit
parents
e441f6dc
50ee89b0
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
2 deletions
+1
-2
game.go
op-challenger/fault/game.go
+1
-2
No files found.
op-challenger/fault/game.go
View file @
40af4dcf
...
@@ -30,7 +30,7 @@ type Game interface {
...
@@ -30,7 +30,7 @@ type Game interface {
// This will return an error if it is called with a non-leaf claim.
// This will return an error if it is called with a non-leaf claim.
PreStateClaim
(
claim
Claim
)
(
Claim
,
error
)
PreStateClaim
(
claim
Claim
)
(
Claim
,
error
)
// PostStateClaim gets the claim which commits to the p
re
-state of this specific claim.
// PostStateClaim gets the claim which commits to the p
ost
-state of this specific claim.
// This will return an error if it is called with a non-leaf claim.
// This will return an error if it is called with a non-leaf claim.
PostStateClaim
(
claim
Claim
)
(
Claim
,
error
)
PostStateClaim
(
claim
Claim
)
(
Claim
,
error
)
}
}
...
@@ -133,7 +133,6 @@ func (g *gameState) PreStateClaim(claim Claim) (Claim, error) {
...
@@ -133,7 +133,6 @@ func (g *gameState) PreStateClaim(claim Claim) (Claim, error) {
}
}
// If the claim is the far left most claim, the pre-state is pulled from the contracts & we can supply at contract index.
// If the claim is the far left most claim, the pre-state is pulled from the contracts & we can supply at contract index.
if
claim
.
IndexAtDepth
()
==
0
{
if
claim
.
IndexAtDepth
()
==
0
{
return
Claim
{
return
Claim
{
ContractIndex
:
-
1
,
ContractIndex
:
-
1
,
},
nil
},
nil
...
...
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