Remove unused function, sort imports

pull/31006/head
shahafn 3 weeks ago
parent c94a39c37e
commit 6c913faca6
  1. 18
      eth/tracers/native/erc7562.go

@ -19,6 +19,11 @@ package native
import ( import (
"encoding/json" "encoding/json"
"errors" "errors"
"math/big"
"runtime"
"runtime/debug"
"sync/atomic"
"github.com/ethereum/go-ethereum/accounts/abi" "github.com/ethereum/go-ethereum/accounts/abi"
"github.com/ethereum/go-ethereum/common" "github.com/ethereum/go-ethereum/common"
"github.com/ethereum/go-ethereum/common/hexutil" "github.com/ethereum/go-ethereum/common/hexutil"
@ -29,10 +34,6 @@ import (
"github.com/ethereum/go-ethereum/log" "github.com/ethereum/go-ethereum/log"
"github.com/ethereum/go-ethereum/params" "github.com/ethereum/go-ethereum/params"
"github.com/holiman/uint256" "github.com/holiman/uint256"
"math/big"
"runtime"
"runtime/debug"
"sync/atomic"
) )
//go:generate go run github.com/fjl/gencodec -type callFrameWithOpcodes -field-override callFrameWithOpcodesMarshaling -out gen_callframewithopcodes_json.go //go:generate go run github.com/fjl/gencodec -type callFrameWithOpcodes -field-override callFrameWithOpcodesMarshaling -out gen_callframewithopcodes_json.go
@ -181,15 +182,6 @@ type erc7562TracerConfig struct {
WithLog bool `json:"withLog"` // If true, erc7562 tracer will collect event logs WithLog bool `json:"withLog"` // If true, erc7562 tracer will collect event logs
} }
// Function to convert byte array to map[vm.OpCode]struct{}
func ConvertBytesToOpCodes(byteArray []byte) map[vm.OpCode]struct{} {
var opCodes map[vm.OpCode]struct{}
for _, b := range byteArray {
opCodes[vm.OpCode(b)] = struct{}{}
}
return opCodes
}
func getFullConfiguration(partial erc7562TracerConfig) erc7562TracerConfig { func getFullConfiguration(partial erc7562TracerConfig) erc7562TracerConfig {
config := partial config := partial

Loading…
Cancel
Save