Skip to content

Commit beaae1a

Browse files
committed
lint
1 parent 57b399c commit beaae1a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

local/blockchain.go

+4-4
Original file line numberDiff line numberDiff line change
@@ -981,7 +981,7 @@ func (ln *localNetwork) addPermissionlessDelegators(
981981
return errors.New(msg)
982982
}
983983
}
984-
// wallet needs txs for all existant subnets
984+
// wallet needs txs for all existent subnets
985985
w, err := newWallet(ctx, clientURI, subnetIDs)
986986
if err != nil {
987987
return err
@@ -1082,7 +1082,7 @@ func (ln *localNetwork) addPermissionlessValidators(
10821082
return errors.New(msg)
10831083
}
10841084
}
1085-
// wallet needs txs for all existant subnets
1085+
// wallet needs txs for all existent subnets
10861086
w, err := newWallet(ctx, clientURI, subnetIDs)
10871087
if err != nil {
10881088
return err
@@ -1196,7 +1196,7 @@ func (ln *localNetwork) transformToElasticSubnets(
11961196
return nil, nil, err
11971197
}
11981198
platformCli := platformvm.NewClient(clientURI)
1199-
var subnetIDs []ids.ID
1199+
subnetIDs := make([]ids.ID, len(elasticSubnetSpecs))
12001200
for _, elasticSubnetSpec := range elasticSubnetSpecs {
12011201
if elasticSubnetSpec.SubnetID == nil {
12021202
return nil, nil, errors.New("elastic subnet spec has no subnet ID")
@@ -1219,7 +1219,7 @@ func (ln *localNetwork) transformToElasticSubnets(
12191219
return nil, nil, errors.New(msg)
12201220
}
12211221
}
1222-
// wallet needs txs for all existant subnets
1222+
// wallet needs txs for all existent subnets
12231223
w, err := newWallet(ctx, clientURI, subnetIDs)
12241224
if err != nil {
12251225
return nil, nil, err

0 commit comments

Comments
 (0)