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 }