Commit 1f551590 authored by Inphi's avatar Inphi Committed by GitHub

op-challenger: Fix list-claims command (#10042)

parent 03105023
...@@ -100,7 +100,7 @@ func listClaims(ctx context.Context, game *contracts.FaultDisputeGameContract) e ...@@ -100,7 +100,7 @@ func listClaims(ctx context.Context, game *contracts.FaultDisputeGameContract) e
if claim.Depth() <= splitDepth { if claim.Depth() <= splitDepth {
traceIdx = claim.TraceIndex(splitDepth) traceIdx = claim.TraceIndex(splitDepth)
} else { } else {
relativePos, err := claim.Position.RelativeToAncestorAtDepth(splitDepth) relativePos, err := claim.Position.RelativeToAncestorAtDepth(splitDepth + 1)
if err != nil { if err != nil {
fmt.Printf("Error calculating relative position for claim %v: %v", claim.ContractIndex, err) fmt.Printf("Error calculating relative position for claim %v: %v", claim.ContractIndex, err)
traceIdx = big.NewInt(-1) traceIdx = big.NewInt(-1)
......
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