Skip to content

Commit

Permalink
Merge pull request #321 from OffchainLabs/gettransaction-apibackend-b…
Browse files Browse the repository at this point in the history
…ugfix

Arbitrum APIBackend's GetTransaction should return false when tx is not found
  • Loading branch information
joshuacolvin0 authored May 23, 2024
2 parents dc3b2d2 + f45f6d7 commit 021ff6f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arbitrum/apibackend.go
Original file line number Diff line number Diff line change
Expand Up @@ -614,7 +614,7 @@ func (a *APIBackend) SendConditionalTx(ctx context.Context, signedTx *types.Tran

func (a *APIBackend) GetTransaction(ctx context.Context, txHash common.Hash) (bool, *types.Transaction, common.Hash, uint64, uint64, error) {
tx, blockHash, blockNumber, index := rawdb.ReadTransaction(a.b.chainDb, txHash)
return true, tx, blockHash, blockNumber, index, nil
return tx != nil, tx, blockHash, blockNumber, index, nil
}

func (a *APIBackend) GetPoolTransactions() (types.Transactions, error) {
Expand Down

0 comments on commit 021ff6f

Please sign in to comment.