mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-20 10:52:25 +00:00
internal/ethapi: add 0x prefix for the revert bytes
This commit is contained in:
parent
0f7056fc56
commit
cbb1fab481
1 changed files with 1 additions and 1 deletions
|
|
@ -50,7 +50,7 @@ func newRevertError(revert []byte) *revertError {
|
||||||
if errUnpack == nil {
|
if errUnpack == nil {
|
||||||
err = fmt.Errorf("%w: %v", vm.ErrExecutionReverted, reason)
|
err = fmt.Errorf("%w: %v", vm.ErrExecutionReverted, reason)
|
||||||
} else if len(revert) >= 4 {
|
} else if len(revert) >= 4 {
|
||||||
err = fmt.Errorf("execution reverted with a custom error: %x", revert)
|
err = fmt.Errorf("execution reverted with a custom error: %#x", revert)
|
||||||
}
|
}
|
||||||
return &revertError{
|
return &revertError{
|
||||||
error: err,
|
error: err,
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue