From ad2ae5d6c0ea60d41c405435b11cf8fa3f65a4a0 Mon Sep 17 00:00:00 2001 From: James Walker Date: Tue, 26 Mar 2024 16:59:46 -0400 Subject: [PATCH] fix loop iteration --- common/txmgr/inmemory_store.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/txmgr/inmemory_store.go b/common/txmgr/inmemory_store.go index fff742901e9..e5fe28c5b77 100644 --- a/common/txmgr/inmemory_store.go +++ b/common/txmgr/inmemory_store.go @@ -366,7 +366,7 @@ func (ms *inMemoryStore[CHAIN_ID, ADDR, TX_HASH, BLOCK_HASH, R, SEQ, FEE]) SaveS tx.BroadcastAt = &broadcastAt } - for i := range tx.TxAttempts { + for i := 0; i < len(tx.TxAttempts); i++ { if tx.TxAttempts[i].ID == attempt.ID { tx.TxAttempts[i].State = txmgrtypes.TxAttemptBroadcast return