@@ -981,7 +981,7 @@ func (ln *localNetwork) addPermissionlessDelegators(
981
981
return errors .New (msg )
982
982
}
983
983
}
984
- // wallet needs txs for all existant subnets
984
+ // wallet needs txs for all existent subnets
985
985
w , err := newWallet (ctx , clientURI , subnetIDs )
986
986
if err != nil {
987
987
return err
@@ -1082,7 +1082,7 @@ func (ln *localNetwork) addPermissionlessValidators(
1082
1082
return errors .New (msg )
1083
1083
}
1084
1084
}
1085
- // wallet needs txs for all existant subnets
1085
+ // wallet needs txs for all existent subnets
1086
1086
w , err := newWallet (ctx , clientURI , subnetIDs )
1087
1087
if err != nil {
1088
1088
return err
@@ -1196,7 +1196,7 @@ func (ln *localNetwork) transformToElasticSubnets(
1196
1196
return nil , nil , err
1197
1197
}
1198
1198
platformCli := platformvm .NewClient (clientURI )
1199
- var subnetIDs []ids.ID
1199
+ subnetIDs := make ( []ids.ID , len ( elasticSubnetSpecs ))
1200
1200
for _ , elasticSubnetSpec := range elasticSubnetSpecs {
1201
1201
if elasticSubnetSpec .SubnetID == nil {
1202
1202
return nil , nil , errors .New ("elastic subnet spec has no subnet ID" )
@@ -1219,7 +1219,7 @@ func (ln *localNetwork) transformToElasticSubnets(
1219
1219
return nil , nil , errors .New (msg )
1220
1220
}
1221
1221
}
1222
- // wallet needs txs for all existant subnets
1222
+ // wallet needs txs for all existent subnets
1223
1223
w , err := newWallet (ctx , clientURI , subnetIDs )
1224
1224
if err != nil {
1225
1225
return nil , nil , err
0 commit comments