mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-18 10:50:44 +00:00
Co-authored-by: Guifel <toowik@gmail.com>
This commit is contained in:
parent
4f738d2191
commit
8712fec2b5
1 changed files with 1 additions and 1 deletions
|
|
@ -440,7 +440,7 @@ func (api *API) TraceBlockByHash(ctx context.Context, hash common.Hash, config *
|
||||||
|
|
||||||
// TraceBlock returns the structured logs created during the execution of EVM
|
// TraceBlock returns the structured logs created during the execution of EVM
|
||||||
// and returns them as a JSON object.
|
// 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)
|
block := new(types.Block)
|
||||||
if err := rlp.Decode(bytes.NewReader(blob), block); err != nil {
|
if err := rlp.Decode(bytes.NewReader(blob), block); err != nil {
|
||||||
return nil, fmt.Errorf("could not decode block: %v", err)
|
return nil, fmt.Errorf("could not decode block: %v", err)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue