From de7fcf7db29ad3166dc9a3e5335c8b1638d5906c Mon Sep 17 00:00:00 2001 From: pavedroad Date: Thu, 17 Jul 2025 16:02:19 +0800 Subject: [PATCH] chore: fix some minor issues in comments Signed-off-by: pavedroad --- shared/types/config/parameter.go | 2 +- shared/utils/string-utils/str-convs.go | 2 +- stader-lib/stader/stader.go | 2 +- stader/api/node/status.go | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/shared/types/config/parameter.go b/shared/types/config/parameter.go index e29fcbc1d..7a2adb776 100644 --- a/shared/types/config/parameter.go +++ b/shared/types/config/parameter.go @@ -183,7 +183,7 @@ func (param *Parameter) UpdateDescription(network Network) { } } -// Add the parameters to the collection of environment variabes +// Add the parameters to the collection of environment variables func AddParametersToEnvVars(params []*Parameter, envVars map[string]string) { for _, param := range params { for _, envVar := range param.EnvironmentVariables { diff --git a/shared/utils/string-utils/str-convs.go b/shared/utils/string-utils/str-convs.go index 9c3b096c6..1f75c273a 100644 --- a/shared/utils/string-utils/str-convs.go +++ b/shared/utils/string-utils/str-convs.go @@ -14,7 +14,7 @@ func StringifyArray(arr []*big.Int) string { return strings.Join(strArr, ",") } -// write a method given a comma seperated value of string numbers, get the big Ints back +// write a method given a comma separated value of string numbers, get the big Ints back func DestringifyArray(arr string) ([]*big.Int, error) { var intArr []*big.Int for _, v := range strings.Split(arr, ",") { diff --git a/stader-lib/stader/stader.go b/stader-lib/stader/stader.go index a0b80a1bc..d44f94c69 100644 --- a/stader-lib/stader/stader.go +++ b/stader-lib/stader/stader.go @@ -354,7 +354,7 @@ func NewPenaltyTracker(client ExecutionClient, penaltyAddress common.Address) (* } -// implement simliar bindings as above for stake pool manager +// implement similar bindings as above for stake pool manager type StakePoolManagerContractManager struct { Client ExecutionClient diff --git a/stader/api/node/status.go b/stader/api/node/status.go index e09085531..8cdcb092f 100644 --- a/stader/api/node/status.go +++ b/stader/api/node/status.go @@ -157,7 +157,7 @@ func getStatus(c *cli.Context) (*api.NodeStatusResponse, error) { response.OperatorRewardAddress = operatorRegistry.OperatorRewardAddress response.OptedInForSocializingPool = operatorRegistry.OptedForSocializingPool - // non socializing pool fee recepient + // non socializing pool fee recipient operatorElRewardAddress, err := node.GetNodeElRewardAddress(pnr, 1, operatorId, nil) if err != nil { return nil, err