forked from cerc-io/plugeth
core: move tx indexer to its own file (#28857)
This change moves all the transaction indexing functions to a separate txindexer.go file and defines a txIndexer structure as a refactoring.
This commit is contained in:
@@ -71,7 +71,7 @@ func (e *TxIndexingError) Error() string {
|
||||
// ErrorCode returns the JSON error code for a revert.
|
||||
// See: https://github.com/ethereum/wiki/wiki/JSON-RPC-Error-Codes-Improvement-Proposal
|
||||
func (e *TxIndexingError) ErrorCode() int {
|
||||
return 3 // TODO tbd
|
||||
return -32000 // to be decided
|
||||
}
|
||||
|
||||
// ErrorData returns the hex encoded revert reason.
|
||||
|
||||
Reference in New Issue
Block a user