Skip to content

Commit

Permalink
Merge branch 'develop' into po/oracle_proof
Browse files Browse the repository at this point in the history
  • Loading branch information
dajuguan committed Nov 9, 2024
2 parents bd144d9 + 9d991ee commit 3390c9d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
7 changes: 2 additions & 5 deletions op-challenger2/game/fault/trace/translate.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package trace

import (
"context"
"fmt"

"github.com/ethereum-optimism/optimism/op-challenger2/game/fault/types"
"github.com/ethereum/go-ethereum/common"
Expand Down Expand Up @@ -45,11 +46,7 @@ func (p *TranslatingProvider) GetStepData(ctx context.Context, pos types.Positio
}

func (p *TranslatingProvider) GetStepData2(ctx context.Context, pos types.Position) (prestate []byte, proofData []byte, preimageData *types.PreimageOracleData, err error) {
relativePos, err := pos.RelativeToAncestorAtDepth(p.rootDepth)
if err != nil {
return nil, nil, nil, err
}
return p.provider.GetStepData(ctx, relativePos)
return nil, nil, nil, fmt.Errorf("GetStepData2 is not implemented for TranslatingProvider")
}

func (p *TranslatingProvider) AbsolutePreStateCommitment(ctx context.Context) (hash common.Hash, err error) {
Expand Down
1 change: 0 additions & 1 deletion op-challenger2/game/fault/types/game.go
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,6 @@ func (g *gameState) Claims() []Claim {
}

func (g *gameState) RootClaim() Claim {
// Defensively copy to avoid modifications to the underlying array.
return g.claims[0]
}

Expand Down

0 comments on commit 3390c9d

Please sign in to comment.