From f45f6d75601626daf108aa62ea6cb1549d91c528 Mon Sep 17 00:00:00 2001 From: Ganesh Vanahalli Date: Thu, 23 May 2024 16:07:29 -0700 Subject: [PATCH] Arbitrum APIBackend's GetTransaction should return false when tx is not found --- arbitrum/apibackend.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arbitrum/apibackend.go b/arbitrum/apibackend.go index 6d0e6b7532..f75da149e7 100644 --- a/arbitrum/apibackend.go +++ b/arbitrum/apibackend.go @@ -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) {