Fix eth_getTransactionReceipt

This commit is contained in:
Jerry 2024-10-15 08:53:44 -07:00
parent a106bd18f7
commit 57a7f7fd6f

View file

@ -2070,10 +2070,8 @@ func (api *TransactionAPI) GetTransactionReceipt(ctx context.Context, hash commo
if err != nil { if err != nil {
return nil, NewTxIndexingError() // transaction is not fully indexed return nil, NewTxIndexingError() // transaction is not fully indexed
} }
if !found { if !found {
return nil, nil // transaction is not existent or reachable
}
if tx == nil {
tx, blockHash, blockNumber, index = rawdb.ReadBorTransaction(api.b.ChainDb(), hash) tx, blockHash, blockNumber, index = rawdb.ReadBorTransaction(api.b.ChainDb(), hash)
borTx = true borTx = true
} }