Skip to content

Commit

Permalink
AA-227: Remove legacy 'rip7560_validation' tracer
Browse files Browse the repository at this point in the history
  • Loading branch information
forshtat committed Jan 21, 2025
1 parent c99dbf1 commit 5fd005d
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 384 deletions.
9 changes: 1 addition & 8 deletions eth/tracers/api_tracing_rip7560.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import (
"context"
"errors"
"fmt"
"github.com/ethereum/go-ethereum/common"
"github.com/ethereum/go-ethereum/core"
"github.com/ethereum/go-ethereum/core/state"
"github.com/ethereum/go-ethereum/core/types"
Expand Down Expand Up @@ -111,7 +110,7 @@ func (api *Rip7560API) traceTx(
// Stop: logger.Stop,
// }
//} else {
tracer, err = DefaultDirectory.New("rip7560Validation", txctx, config.TracerConfig, api.backend.ChainConfig())
tracer, err = DefaultDirectory.New("erc7562Tracer", txctx, config.TracerConfig, api.backend.ChainConfig())
// if err != nil {
// return nil, err
// }
Expand Down Expand Up @@ -140,12 +139,6 @@ func (api *Rip7560API) traceTx(
statedb.SetTxContext(txctx.TxHash, txctx.TxIndex)
gp := new(core.GasPool).AddGas(math.MaxUint64)

// TODO: this is added to allow our bundler checking the 'TraceValidation' API is supported on Geth
if tx.Rip7560TransactionData().Sender.Cmp(common.HexToAddress("0x0000000000000000000000000000000000000000")) == 0 {
result, err := tracer.GetResult()
return result, err
}

_, err = core.ApplyRip7560ValidationPhases(api.backend.ChainConfig(), api.chainContext(ctx), nil, gp, statedb, block.Header(), tx, vmenv.Config)
if err != nil {
return nil, err
Expand Down
Loading

0 comments on commit 5fd005d

Please sign in to comment.