Commit 40af4dcf authored by OptimismBot's avatar OptimismBot Committed by GitHub

Merge pull request #6209 from ethereum-optimism/refcell/fixprestate

fix(op-challenger): Post-state game nit
parents e441f6dc 50ee89b0
...@@ -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 pre-state of this specific claim. // PostStateClaim gets the claim which commits to the post-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
......
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