File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -1197,15 +1197,15 @@ func (ln *localNetwork) transformToElasticSubnets(
1197
1197
}
1198
1198
platformCli := platformvm .NewClient (clientURI )
1199
1199
subnetIDs := make ([]ids.ID , len (elasticSubnetSpecs ))
1200
- for _ , elasticSubnetSpec := range elasticSubnetSpecs {
1200
+ for i , elasticSubnetSpec := range elasticSubnetSpecs {
1201
1201
if elasticSubnetSpec .SubnetID == nil {
1202
1202
return nil , nil , errors .New ("elastic subnet spec has no subnet ID" )
1203
1203
}
1204
1204
subnetID , err := ids .FromString (* elasticSubnetSpec .SubnetID )
1205
1205
if err != nil {
1206
1206
return nil , nil , err
1207
1207
}
1208
- subnetIDs = append ( subnetIDs , subnetID )
1208
+ subnetIDs [ i ] = subnetID
1209
1209
}
1210
1210
// check for all subnets to be not permissionless
1211
1211
for _ , subnetID := range subnetIDs {
You can’t perform that action at this time.
0 commit comments