Skip to content

Commit

Permalink
Fix eth_getTransactionReceipt
Browse files Browse the repository at this point in the history
  • Loading branch information
cffls committed Oct 15, 2024
1 parent a106bd1 commit 57a7f7f
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions internal/ethapi/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit 57a7f7f

Please sign in to comment.