Skip to content

Commit

Permalink
fix linter issue
Browse files Browse the repository at this point in the history
  • Loading branch information
poopoothegorilla committed Mar 21, 2024
1 parent 5af2106 commit cbacd55
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion common/txmgr/address_state.go
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,8 @@ func (as *addressState[CHAIN_ID, ADDR, TX_HASH, BLOCK_HASH, R, SEQ, FEE]) addTxA
defer as.Unlock()

var errs error
for _, txAttempt := range txAttempts {
for i := 0; i < len(txAttempts); i++ {
txAttempt := txAttempts[i]
tx := as.allTxs[txAttempt.TxID]
if tx == nil {
errs = errors.Join(errs, fmt.Errorf("no transaction with ID %d", txAttempt.TxID))
Expand Down

0 comments on commit cbacd55

Please sign in to comment.