Skip to content

Commit 3694915

Browse files
committed
fix bug
1 parent beaae1a commit 3694915

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

local/blockchain.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -1197,15 +1197,15 @@ func (ln *localNetwork) transformToElasticSubnets(
11971197
}
11981198
platformCli := platformvm.NewClient(clientURI)
11991199
subnetIDs := make([]ids.ID, len(elasticSubnetSpecs))
1200-
for _, elasticSubnetSpec := range elasticSubnetSpecs {
1200+
for i, elasticSubnetSpec := range elasticSubnetSpecs {
12011201
if elasticSubnetSpec.SubnetID == nil {
12021202
return nil, nil, errors.New("elastic subnet spec has no subnet ID")
12031203
}
12041204
subnetID, err := ids.FromString(*elasticSubnetSpec.SubnetID)
12051205
if err != nil {
12061206
return nil, nil, err
12071207
}
1208-
subnetIDs = append(subnetIDs, subnetID)
1208+
subnetIDs[i] = subnetID
12091209
}
12101210
// check for all subnets to be not permissionless
12111211
for _, subnetID := range subnetIDs {

0 commit comments

Comments
 (0)