@@ -132,12 +132,12 @@ func TestAlonzoProtocolParamsUpdate(t *testing.T) {
132
132
func TestAlonzoProtocolParametersUpdateFromGenesis (t * testing.T ) {
133
133
// Create cost models with numeric string keys
134
134
plutusV1CostModel := make (map [string ]int )
135
- for i := 0 ; i < 166 ; i ++ {
135
+ for i := range 166 {
136
136
plutusV1CostModel [strconv .Itoa (i )] = i + 1 // "0":1, "1":2, etc.
137
137
}
138
138
139
139
plutusV2CostModel := make (map [string ]int )
140
- for i := 0 ; i < 175 ; i ++ {
140
+ for i := range 175 {
141
141
plutusV2CostModel [strconv .Itoa (i )] = i + 1 // "0":1, "1":2, etc.
142
142
}
143
143
@@ -185,7 +185,7 @@ func TestAlonzoProtocolParametersUpdateFromGenesis(t *testing.T) {
185
185
func TestCostModelArrayFormat (t * testing.T ) {
186
186
// Create cost model with numeric string keys
187
187
plutusV1CostModel := make (map [string ]int )
188
- for i := 0 ; i < 166 ; i ++ {
188
+ for i := range 166 {
189
189
plutusV1CostModel [strconv .Itoa (i )] = i + 1 // "0":1, "1":2, etc.
190
190
}
191
191
@@ -261,7 +261,7 @@ func TestScientificNotationInCostModels(t *testing.T) {
261
261
}
262
262
263
263
expected := []int64 {2477736 , 1500000 , 1000000 }
264
- for i := 0 ; i < 3 ; i ++ {
264
+ for i := range 3 {
265
265
if params.CostModels [alonzo.PlutusV1Key ][i ] != expected [i ] {
266
266
t .Errorf ("parameter %d conversion failed: got %d, want %d" ,
267
267
i , params.CostModels [alonzo.PlutusV1Key ][i ], expected [i ])
0 commit comments