From 57a7f7fd6fc093ca824fb21d0be73a8649cc401b Mon Sep 17 00:00:00 2001 From: Jerry Date: Tue, 15 Oct 2024 08:53:44 -0700 Subject: [PATCH] Fix eth_getTransactionReceipt --- internal/ethapi/api.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/internal/ethapi/api.go b/internal/ethapi/api.go index 567280b6f0..28106be05e 100644 --- a/internal/ethapi/api.go +++ b/internal/ethapi/api.go @@ -2070,10 +2070,8 @@ func (api *TransactionAPI) GetTransactionReceipt(ctx context.Context, hash commo if err != nil { return nil, NewTxIndexingError() // transaction is not fully indexed } + if !found { - return nil, nil // transaction is not existent or reachable - } - if tx == nil { tx, blockHash, blockNumber, index = rawdb.ReadBorTransaction(api.b.ChainDb(), hash) borTx = true }