Skip to content

Commit

Permalink
eth/tracers: use hex encoding for debug_traceBlock argument (#24517)
Browse files Browse the repository at this point in the history
  • Loading branch information
guifel authored and qinglin89 committed Aug 22, 2022
1 parent f8e2104 commit 3572eb7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion eth/tracers/api.go
Expand Up @@ -454,7 +454,7 @@ func (api *API) TraceBlockByHash(ctx context.Context, hash common.Hash, config *

// TraceBlock returns the structured logs created during the execution of EVM
// and returns them as a JSON object.
func (api *API) TraceBlock(ctx context.Context, blob []byte, config *TraceConfig) ([]*txTraceResult, error) {
func (api *API) TraceBlock(ctx context.Context, blob hexutil.Bytes, config *TraceConfig) ([]*txTraceResult, error) {
block := new(types.Block)
if err := rlp.Decode(bytes.NewReader(blob), block); err != nil {
return nil, fmt.Errorf("could not decode block: %v", err)
Expand Down

0 comments on commit 3572eb7

Please sign in to comment.