Skip to content

Commit

Permalink
fix(eth): use xerrors for all decodeReturn calls for better traces
Browse files Browse the repository at this point in the history
  • Loading branch information
rvagg committed Nov 28, 2024
1 parent 07f2f69 commit 26de856
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion node/impl/full/eth_trace.go
Original file line number Diff line number Diff line change
Expand Up @@ -446,7 +446,7 @@ func decodeCreateViaEAM(et *types.ExecutionTrace) (initcode []byte, addr *ethtyp
}
ret, err := decodeReturn[eam12.CreateReturn](&et.MsgRct)
if err != nil {
return nil, nil, err
return nil, nil, xerrors.Errorf("failed to decode EAM create return: %w", err)
}
return initcode, (*ethtypes.EthAddress)(&ret.EthAddress), nil
}
Expand Down

0 comments on commit 26de856

Please sign in to comment.