Skip to content

Commit 41db80f

Browse files
authored
chore: fix a large number of spelling issues in comments (#2968)
Signed-off-by: wyrapeseed <wyrapeseed@outlook.com>
1 parent 0b14e7d commit 41db80f

File tree

9 files changed

+16
-16
lines changed

9 files changed

+16
-16
lines changed

cmd/contractcmd/deploy_validator_manager.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ func newDeployValidatorManagerCmd() *cobra.Command {
4545
Short: "Deploy a Validator Manager into a given Network and Blockchain",
4646
Long: `Deploy a Validator Manager, a Proxy, and a Proxy Admin, into a given Network and Blockchain.
4747
If a proxy is provided, configures it to point to the deployed validator manager.
48-
Note: This command deploys smart contracts for a validator manager, but does not initializate it to start operating on a given
48+
Note: This command deploys smart contracts for a validator manager, but does not initialize it to start operating on a given
4949
L1. For that, you need to call 'avalanche contract initValidatorManager'.
5050
`,
5151
RunE: deployValidatorManager,

cmd/nodecmd/validate_primary.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -308,7 +308,7 @@ func validatePrimaryNetwork(_ *cobra.Command, args []string) error {
308308
if err != nil {
309309
return err
310310
}
311-
hosts := clusterConfig.GetValidatorHosts(allHosts) // exlude api nodes
311+
hosts := clusterConfig.GetValidatorHosts(allHosts) // exclude api nodes
312312
defer node.DisconnectHosts(hosts)
313313

314314
// TODO: will estimate fee in subsecuent PR

cmd/nodecmd/validate_subnet.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ func validateSubnet(_ *cobra.Command, args []string) error {
195195
if err != nil {
196196
return err
197197
}
198-
hosts := clusterConfig.GetValidatorHosts(allHosts) // exlude api nodes
198+
hosts := clusterConfig.GetValidatorHosts(allHosts) // exclude api nodes
199199
if len(validators) != 0 {
200200
hosts, err = filterHosts(hosts, validators)
201201
if err != nil {

cmd/nodecmd/wiz.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,7 @@ func wiz(cmd *cobra.Command, args []string) error {
259259
if !ok {
260260
return fmt.Errorf("cluster %s does not exist", clusterName)
261261
}
262-
hosts := cluster.GetValidatorHosts(allHosts) // exlude api nodes
262+
hosts := cluster.GetValidatorHosts(allHosts) // exclude api nodes
263263
_, err = filterHosts(hosts, validators)
264264
if err != nil {
265265
return err
@@ -678,7 +678,7 @@ func checkRPCCompatibility(
678678
if err != nil {
679679
return err
680680
}
681-
hosts := clusterConfig.GetValidatorHosts(allHosts) // exlude api nodes
681+
hosts := clusterConfig.GetValidatorHosts(allHosts) // exclude api nodes
682682
if len(validators) != 0 {
683683
hosts, err = filterHosts(hosts, validators)
684684
if err != nil {
@@ -705,7 +705,7 @@ func waitForSubnetValidators(
705705
if err != nil {
706706
return err
707707
}
708-
hosts := clusterConfig.GetValidatorHosts(allHosts) // exlude api nodes
708+
hosts := clusterConfig.GetValidatorHosts(allHosts) // exclude api nodes
709709
if len(validators) != 0 {
710710
hosts, err = filterHosts(hosts, validators)
711711
if err != nil {
@@ -772,7 +772,7 @@ func waitForClusterSubnetStatus(
772772
if err != nil {
773773
return err
774774
}
775-
hosts := cluster.GetValidatorHosts(allHosts) // exlude api nodes
775+
hosts := cluster.GetValidatorHosts(allHosts) // exclude api nodes
776776
if len(validators) != 0 {
777777
hosts, err = filterHosts(hosts, validators)
778778
if err != nil {

docs/ledger-simulator.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ The test should call `utils.StartLedgerSim(numApprovals, ledgerSeed, showStdout)
5959

6060
- number of txs to be approved by the ledger
6161
- seed for the ledger
62-
- wether to show stdout
62+
- whether to show stdout
6363

6464
The function returns two channels:
6565

pkg/binutils/binaries.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ func extractTarReader(gzipReader io.Reader, targetDir string) error {
219219
if _, err := io.CopyN(f, tarReader, maxCopy); err != nil && !errors.Is(err, io.EOF) {
220220
return fmt.Errorf("failed writing tar entry contents to disk: %w", err)
221221
}
222-
// manually close here after each file operation; defering would cause each file close
222+
// manually close here after each file operation; deferring would cause each file close
223223
// to wait until all operations have completed.
224224
if err := f.Close(); err != nil {
225225
return err

pkg/localnet/tmpnet.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1084,7 +1084,7 @@ func TmpNetStartNode(
10841084
}
10851085
_, ok := node.Flags[config.BootstrapIPsKey]
10861086
if !ok && !IsPublicNetwork(networkID) {
1087-
// it does not have boostrappers set, and it is also not a public network node,
1087+
// it does not have bootstrappers set, and it is also not a public network node,
10881088
// so we need to set bootstrappers from the custom network itself
10891089
bootstrapIPs, bootstrapIDs, err := GetTmpNetBootstrappers(network.Dir, node.NodeID)
10901090
if err != nil {
@@ -1104,7 +1104,7 @@ func TmpNetStartNode(
11041104
return nil
11051105
}
11061106

1107-
// Indicates wether a given network ID is for public network
1107+
// Indicates whether a given network ID is for public network
11081108
func IsPublicNetwork(networkID uint32) bool {
11091109
return networkID == avagoconstants.FujiID || networkID == avagoconstants.MainnetID
11101110
}
@@ -1146,7 +1146,7 @@ func GetTmpNetNetworkWithURIFix(networkDir string) (*tmpnet.Network, error) {
11461146
return network, nil
11471147
}
11481148

1149-
// Get all node URIs of the network. transformates URIs
1149+
// Get all node URIs of the network. transforms URIs
11501150
func GetTmpNetNodeURIsWithFix(
11511151
networkDir string,
11521152
) ([]string, error) {

pkg/node/helper.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ func WaitForHealthyCluster(
239239
if err != nil {
240240
return err
241241
}
242-
hosts := cluster.GetValidatorHosts(allHosts) // exlude api nodes
242+
hosts := cluster.GetValidatorHosts(allHosts) // exclude api nodes
243243
defer DisconnectHosts(hosts)
244244
startTime := time.Now()
245245
spinSession := ux.NewUserSpinner()

pkg/vm/evm_prompts.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,7 @@ func PromptSubnetEVMGenesisParams(
249249
return params, tokenSymbol, nil
250250
}
251251

252-
// prompts for wether to use a remote or native gas token
252+
// prompts for whether to use a remote or native gas token
253253
func promptGasTokenKind(
254254
app *application.Avalanche,
255255
defaultsKind DefaultsKind,
@@ -292,7 +292,7 @@ func promptGasTokenKind(
292292
return params, nil
293293
}
294294

295-
// prompts for wether to use defaults to build the config
295+
// prompts for whether to use defaults to build the config
296296
func PromptDefaults(
297297
app *application.Avalanche,
298298
defaultsKind DefaultsKind,
@@ -746,7 +746,7 @@ func promptFeeConfig(
746746
// if useICM is defined, will enable/disable ICM based on it
747747
// is useDefaults is true, will enable ICM
748748
// if using external gas token, will assume ICM to be enabled
749-
// if other cases, prompts the user for wether to enable ICM
749+
// if other cases, prompts the user for whether to enable ICM
750750
func PromptInterop(
751751
app *application.Avalanche,
752752
useICMFlag *bool,

0 commit comments

Comments
 (0)