We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 739f6f4 commit 27bd9e7Copy full SHA for 27bd9e7
internal/ethapi/errors.go
@@ -42,7 +42,7 @@ type txSyncTimeoutError struct {
42
// ErrorCode returns the JSON error code for a revert.
43
// See: https://ethereum.org/en/developers/docs/apis/json-rpc/#error-codes
44
func (e *revertError) ErrorCode() int {
45
- return 3
+ return errCodeReverted
46
}
47
48
// ErrorData returns the hex encoded revert reason.
@@ -112,7 +112,7 @@ const (
112
errCodeClientLimitExceeded = -38026
113
errCodeInternalError = -32603
114
errCodeInvalidParams = -32602
115
- errCodeReverted = -32000
+ errCodeReverted = 3
116
errCodeVMError = -32015
117
errCodeTxSyncTimeout = 4
118
)
0 commit comments