Skip to content

Commit 021ff6f

Browse files
Merge pull request #321 from OffchainLabs/gettransaction-apibackend-bugfix
Arbitrum APIBackend's GetTransaction should return false when tx is not found
2 parents dc3b2d2 + f45f6d7 commit 021ff6f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arbitrum/apibackend.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -614,7 +614,7 @@ func (a *APIBackend) SendConditionalTx(ctx context.Context, signedTx *types.Tran
614614

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

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

0 commit comments

Comments
 (0)