Skip to content

Commit

Permalink
add back sql ErrNoRows to evm_tx_store
Browse files Browse the repository at this point in the history
  • Loading branch information
poopoothegorilla committed Feb 16, 2024
1 parent aae832f commit 43e8211
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/chains/evm/txmgr/evm_tx_store.go
Original file line number Diff line number Diff line change
Expand Up @@ -1579,7 +1579,7 @@ func (o *evmTxStore) FindNextUnstartedTransactionFromAddress(ctx context.Context
err := qq.Get(&dbEtx, `SELECT * FROM evm.txes WHERE from_address = $1 AND state = 'unstarted' AND evm_chain_id = $2 ORDER BY value ASC, created_at ASC, id ASC`, fromAddress, chainID.String())
if err != nil {
if errors.Is(err, sql.ErrNoRows) {
return txmgr.ErrTxnNotFound
return sql.ErrNoRows
}
return pkgerrors.Wrap(err, "failed to FindNextUnstartedTransactionFromAddress")
}
Expand Down

0 comments on commit 43e8211

Please sign in to comment.