mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-25 22:26:42 +00:00
Update errors.go
This commit is contained in:
parent
9388733e05
commit
65414770ce
1 changed files with 2 additions and 2 deletions
|
|
@ -34,7 +34,7 @@ type revertError struct {
|
||||||
}
|
}
|
||||||
|
|
||||||
// ErrorCode returns the JSON error code for a revert.
|
// ErrorCode returns the JSON error code for a revert.
|
||||||
// See: https://github.com/ethereum/wiki/wiki/JSON-RPC-Error-Codes-Improvement-Proposal
|
// See: https://ethereum.org/en/developers/docs/apis/json-rpc/#error-codes
|
||||||
func (e *revertError) ErrorCode() int {
|
func (e *revertError) ErrorCode() int {
|
||||||
return 3
|
return 3
|
||||||
}
|
}
|
||||||
|
|
@ -71,7 +71,7 @@ func (e *TxIndexingError) Error() string {
|
||||||
}
|
}
|
||||||
|
|
||||||
// ErrorCode returns the JSON error code for a revert.
|
// ErrorCode returns the JSON error code for a revert.
|
||||||
// See: https://github.com/ethereum/wiki/wiki/JSON-RPC-Error-Codes-Improvement-Proposal
|
// See: https://ethereum.org/en/developers/docs/apis/json-rpc/#error-codes
|
||||||
func (e *TxIndexingError) ErrorCode() int {
|
func (e *TxIndexingError) ErrorCode() int {
|
||||||
return -32000 // to be decided
|
return -32000 // to be decided
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue