Skip to content

Commit

Permalink
Fix compile error
Browse files Browse the repository at this point in the history
  • Loading branch information
cffls committed Apr 16, 2024
1 parent 7740dc1 commit ebdb238
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
6 changes: 0 additions & 6 deletions core/types/trace.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,6 @@ import (
"github.com/ledgerwatch/erigon-lib/common/hexutility"
)

type HexBytes []byte

func (b HexBytes) MarshalText() ([]byte, error) {
return hexutility.Bytes(b[:]).MarshalText()
}

type ContractCodeUsage struct {
Read *libcommon.Hash `json:"read,omitempty"`
Write hexutility.Bytes `json:"write,omitempty"`
Expand Down
3 changes: 2 additions & 1 deletion turbo/jsonrpc/tracing.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ import (
"github.com/ledgerwatch/erigon/core/vm/evmtypes"

"github.com/ledgerwatch/erigon-lib/common/hexutil"
"github.com/ledgerwatch/erigon-lib/common/hexutility"

"github.com/ledgerwatch/erigon/common/math"
"github.com/ledgerwatch/erigon/core"
Expand Down Expand Up @@ -229,7 +230,7 @@ func (api *PrivateDebugAPIImpl) traceBlock(ctx context.Context, blockNrOrHash rp

preImage := types.TriePreImage{
Combined: types.CombinedPreImages{
Compact: types.HexBytes(witness_bytes),
Compact: hexutility.Bytes(witness_bytes),
},
}

Expand Down

0 comments on commit ebdb238

Please sign in to comment.