mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-23 05:06:43 +00:00
set reverted error code to 3
This commit is contained in:
parent
739f6f46a2
commit
27bd9e71f5
1 changed files with 2 additions and 2 deletions
|
|
@ -42,7 +42,7 @@ type txSyncTimeoutError struct {
|
|||
// ErrorCode returns the JSON error code for a revert.
|
||||
// See: https://ethereum.org/en/developers/docs/apis/json-rpc/#error-codes
|
||||
func (e *revertError) ErrorCode() int {
|
||||
return 3
|
||||
return errCodeReverted
|
||||
}
|
||||
|
||||
// ErrorData returns the hex encoded revert reason.
|
||||
|
|
@ -112,7 +112,7 @@ const (
|
|||
errCodeClientLimitExceeded = -38026
|
||||
errCodeInternalError = -32603
|
||||
errCodeInvalidParams = -32602
|
||||
errCodeReverted = -32000
|
||||
errCodeReverted = 3
|
||||
errCodeVMError = -32015
|
||||
errCodeTxSyncTimeout = 4
|
||||
)
|
||||
|
|
|
|||
Loading…
Reference in a new issue