mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-16 08:53:46 +00:00
Remove unused function, sort imports
This commit is contained in:
parent
c94a39c37e
commit
6c913faca6
1 changed files with 5 additions and 13 deletions
|
|
@ -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…
Reference in a new issue