@@ -69,7 +69,7 @@ func TestNewSingleBlockEvents(t *testing.T) {
6969 events := make ([]flow.Event , 0 )
7070
7171 // generate txs
72- for i := 0 ; i < txCount ; i ++ {
72+ for i := range txCount {
7373 tx , _ , txEvent , err := newTransaction (uint64 (i ), uint16 (i ))
7474 require .NoError (t , err )
7575 hashes [i ] = tx .Hash ()
@@ -246,7 +246,7 @@ func TestNewSingleBlockEvents(t *testing.T) {
246246
247247 // assert that EVM transactions & receipts are sorted by their
248248 // TransactionIndex field
249- for i := 0 ; i < txCount ; i ++ {
249+ for i := range txCount {
250250 tx := cdcEvents .transactions [i ]
251251 receipt := cdcEvents .receipts [i ]
252252 assert .Equal (t , tx .Hash (), receipt .TxHash )
@@ -315,7 +315,7 @@ func TestNewMultiBlockEvents(t *testing.T) {
315315 evmTxEvents := make ([]flow.BlockEvents , txCount )
316316
317317 // generate txs
318- for i := 0 ; i < txCount ; i ++ {
318+ for i := range txCount {
319319 tx , _ , txEvent , err := newTransaction (uint64 (i ), uint16 (i ))
320320 require .NoError (t , err )
321321 hashes [i ] = tx .Hash ()
@@ -338,7 +338,7 @@ func TestNewMultiBlockEvents(t *testing.T) {
338338
339339 // Below we add all the EVM transaction events, but we have omitted
340340 // the EVM.BlockExecuted event.
341- for i := 0 ; i < txCount ; i ++ {
341+ for i := range txCount {
342342 blockEvents .Events = append (blockEvents .Events , evmTxEvents [i ].Events ... )
343343 }
344344
@@ -388,7 +388,7 @@ func TestNewMultiBlockEvents(t *testing.T) {
388388 }
389389
390390 // Below we add all the EVM transaction events
391- for i := 0 ; i < txCount ; i ++ {
391+ for i := range txCount {
392392 blockEvents .Events = append (blockEvents .Events , evmTxEvents [i ].Events ... )
393393 }
394394
@@ -508,7 +508,7 @@ func Test_EventDecoding(t *testing.T) {
508508 }
509509
510510 // generate txs
511- for i := 0 ; i < txCount ; i ++ {
511+ for i := range txCount {
512512 var err error
513513 txs [i ], results [i ], txEvents [i ], err = newTransaction (uint64 (i ), uint16 (i ))
514514 require .NoError (t , err )
@@ -535,7 +535,7 @@ func Test_EventDecoding(t *testing.T) {
535535
536536 cumulative := uint64 (1 )
537537 logIndex := uint (0 )
538- for i := 0 ; i < txCount ; i ++ {
538+ for i := range txCount {
539539 tx := cadenceEvents .Transactions ()[i ]
540540 rcp := cadenceEvents .Receipts ()[i ]
541541 blockHash , err := block .Hash ()
0 commit comments