From 2c4fce301798fa65a3dab073245f87e552fea9f9 Mon Sep 17 00:00:00 2001 From: spuradage Date: Fri, 17 Oct 2025 15:09:05 +0800 Subject: [PATCH] chore: fix some minor issues in the comments Signed-off-by: spuradage --- utils/pow_approx.go | 4 ++-- x/commitment/keeper/keeper.go | 2 +- x/commitment/types/types_cw.pb.go | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/utils/pow_approx.go b/utils/pow_approx.go index 97f3bbf7e..eaa40a93e 100644 --- a/utils/pow_approx.go +++ b/utils/pow_approx.go @@ -37,7 +37,7 @@ func computeExp(x sdkmath.LegacyDec) (sdkmath.LegacyDec, error) { break } if n > powIterationLimit { - return sdkmath.LegacyDec{}, fmt.Errorf("failed to reach precision within %d iterations while comuting Exp for: %s", powIterationLimit, x.String()) + return sdkmath.LegacyDec{}, fmt.Errorf("failed to reach precision within %d iterations while computing Exp for: %s", powIterationLimit, x.String()) } } @@ -96,7 +96,7 @@ func computeLn(x sdkmath.LegacyDec) (result sdkmath.LegacyDec, err error) { } if n > powIterationLimit { - return sdkmath.LegacyDec{}, fmt.Errorf("failed to reach precision within %d iterations while comuting Ln for: %s", powIterationLimit, x.String()) + return sdkmath.LegacyDec{}, fmt.Errorf("failed to reach precision within %d iterations while computing Ln for: %s", powIterationLimit, x.String()) } yPower = yPower.Mul(y) diff --git a/x/commitment/keeper/keeper.go b/x/commitment/keeper/keeper.go index da852ff76..de5657fcb 100644 --- a/x/commitment/keeper/keeper.go +++ b/x/commitment/keeper/keeper.go @@ -16,7 +16,7 @@ import ( ptypes "github.com/elys-network/elys/v7/x/parameter/types" ) -// Interface declearation +// Interface declaration type CommitmentKeeperI interface { // Iterate all commitments IterateCommitments(sdk.Context, func(types.Commitments) (stop bool)) diff --git a/x/commitment/types/types_cw.pb.go b/x/commitment/types/types_cw.pb.go index e778a3a1a..f9f2d85f9 100644 --- a/x/commitment/types/types_cw.pb.go +++ b/x/commitment/types/types_cw.pb.go @@ -694,7 +694,7 @@ type ValidatorDetail struct { Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"` // Voting power percentage for this validator. VotingPower cosmossdk_io_math.LegacyDec `protobuf:"bytes,4,opt,name=voting_power,json=votingPower,proto3,customtype=cosmossdk.io/math.LegacyDec" json:"voting_power"` - // Comission percentage for the validator. + // Commission percentage for the validator. Commission cosmossdk_io_math.LegacyDec `protobuf:"bytes,5,opt,name=commission,proto3,customtype=cosmossdk.io/math.LegacyDec" json:"commission"` // The staked amount the user has w/ this validator // Only available if there's some and if address. @@ -790,7 +790,7 @@ type StakingValidator struct { Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"` // Voting power percentage for this validator. VotingPower cosmossdk_io_math.LegacyDec `protobuf:"bytes,4,opt,name=voting_power,json=votingPower,proto3,customtype=cosmossdk.io/math.LegacyDec" json:"voting_power"` - // Comission percentage for the validator. + // Commission percentage for the validator. Commission cosmossdk_io_math.LegacyDec `protobuf:"bytes,5,opt,name=commission,proto3,customtype=cosmossdk.io/math.LegacyDec" json:"commission"` }