diff --git a/x/feegrant/client/cli/tx.go b/x/feegrant/client/cli/tx.go index ac9d3c5035..dabb5d91e4 100644 --- a/x/feegrant/client/cli/tx.go +++ b/x/feegrant/client/cli/tx.go @@ -181,7 +181,7 @@ Examples: cmd.Flags().StringSlice(FlagAllowedMsgs, []string{}, "Set of allowed messages for fee allowance") cmd.Flags().String(FlagExpiration, "", "The RFC 3339 timestamp after which the grant expires for the user") cmd.Flags().String(FlagSpendLimit, "", "Spend limit specifies the max limit can be used, if not mentioned there is no limit") - cmd.Flags().Int64(FlagPeriod, 0, "period specifies the time duration(in seconds) in which period_limit coins can be spent before that allowance is reset (ex: 3600)") + cmd.Flags().Int64(FlagPeriod, 0, "period specifies the time duration (in seconds) in which period_limit coins can be spent before that allowance is reset (ex: 3600)") cmd.Flags().String(FlagPeriodLimit, "", "period limit specifies the maximum number of coins that can be spent in the period") return cmd diff --git a/x/feegrant/filtered_fee_test.go b/x/feegrant/filtered_fee_test.go index 01bd1db4d9..aa034c7a16 100644 --- a/x/feegrant/filtered_fee_test.go +++ b/x/feegrant/filtered_fee_test.go @@ -114,7 +114,7 @@ func TestFilteredFeeValidAllow(t *testing.T) { blockTime: now, accept: false, }, - "with out spend limit": { + "without spend limit": { allowance: &feegrant.BasicAllowance{ Expiration: &oneHour, }, diff --git a/x/gov/README.md b/x/gov/README.md index 6819f263cb..7b10700c13 100644 --- a/x/gov/README.md +++ b/x/gov/README.md @@ -401,7 +401,7 @@ const ( VoteAbstain = 0x4 ) -type ProposalType string +type ProposalType string const ( ProposalTypePlainText = "Text" diff --git a/x/gov/abci.go b/x/gov/abci.go index c67b923e8d..a411c392a6 100644 --- a/x/gov/abci.go +++ b/x/gov/abci.go @@ -21,7 +21,7 @@ func EndBlocker(ctx sdk.Context, keeper *keeper.Keeper) error { defer telemetry.ModuleMeasureSince(types.ModuleName, telemetry.Now(), telemetry.MetricKeyEndBlocker) logger := ctx.Logger().With("module", "x/"+types.ModuleName) - // delete dead proposals from store and returns theirs deposits. + // delete dead proposals from store and returns their deposits. // A proposal is dead when it's inactive and didn't get enough deposit on time to get into voting phase. rng := collections.NewPrefixUntilPairRange[time.Time, uint64](ctx.BlockTime()) iter, err := keeper.InactiveProposalsQueue.Iterate(ctx, rng) diff --git a/x/gov/abci_test.go b/x/gov/abci_test.go index 39b5aa4aa7..e0f266ea04 100644 --- a/x/gov/abci_test.go +++ b/x/gov/abci_test.go @@ -619,8 +619,8 @@ func TestExpeditedProposal_PassAndConversionToRegular(t *testing.T) { require.NotEqual(t, initialModuleAccCoins, intermediateModuleAccCoins) // Submit proposal deposit + 1 extra top up deposit - expectedIntermediateMofuleAccCoings := initialModuleAccCoins.Add(proposalCoins...).Add(proposalCoins...) - require.Equal(t, expectedIntermediateMofuleAccCoings, intermediateModuleAccCoins) + expectedIntermediateModuleAccCoins := initialModuleAccCoins.Add(proposalCoins...).Add(proposalCoins...) + require.Equal(t, expectedIntermediateModuleAccCoins, intermediateModuleAccCoins) // block header time at the voting period newHeader.Time = ctx.BlockHeader().Time.Add(*params.MaxDepositPeriod).Add(*params.VotingPeriod) diff --git a/x/gov/types/v1/params.go b/x/gov/types/v1/params.go index cf31daccef..a151600561 100644 --- a/x/gov/types/v1/params.go +++ b/x/gov/types/v1/params.go @@ -187,7 +187,7 @@ func (p Params) ValidateBasic() error { return fmt.Errorf("expedited voting period must be positive: %s", p.ExpeditedVotingPeriod) } if p.ExpeditedVotingPeriod.Seconds() >= p.VotingPeriod.Seconds() { - return fmt.Errorf("expedited voting period %s must be strictly less that the regular voting period %s", p.ExpeditedVotingPeriod, p.VotingPeriod) + return fmt.Errorf("expedited voting period %s must be strictly less than the regular voting period %s", p.ExpeditedVotingPeriod, p.VotingPeriod) } minInitialDepositRatio, err := sdkmath.LegacyNewDecFromStr(p.MinInitialDepositRatio) diff --git a/x/gov/types/v1beta1/vote.go b/x/gov/types/v1beta1/vote.go index 27146809e9..69a0bb47c6 100644 --- a/x/gov/types/v1beta1/vote.go +++ b/x/gov/types/v1beta1/vote.go @@ -54,7 +54,7 @@ func NewNonSplitVoteOption(option VoteOption) WeightedVoteOptions { return WeightedVoteOptions{{option, sdkmath.LegacyNewDec(1)}} } -// WeightedVoteOptions describes array of WeightedVoteOptions +// WeightedVoteOptions describes an array of WeightedVoteOptions type WeightedVoteOptions []WeightedVoteOption func (v WeightedVoteOptions) String() (out string) { diff --git a/x/group/msgs.go b/x/group/msgs.go index 59793d79ad..406caf68d2 100644 --- a/x/group/msgs.go +++ b/x/group/msgs.go @@ -14,7 +14,6 @@ var ( _ sdk.Msg = &MsgUpdateGroupAdmin{} _ sdk.Msg = &MsgUpdateGroupMetadata{} _ sdk.Msg = &MsgUpdateGroupMembers{} - _ sdk.Msg = &MsgUpdateGroupMembers{} _ sdk.Msg = &MsgCreateGroupWithPolicy{} _ sdk.Msg = &MsgCreateGroupPolicy{} _ sdk.Msg = &MsgUpdateGroupPolicyAdmin{} diff --git a/x/staking/genesis.go b/x/staking/genesis.go index ad856b1469..f579671654 100644 --- a/x/staking/genesis.go +++ b/x/staking/genesis.go @@ -42,7 +42,7 @@ func WriteValidators(ctx sdk.Context, keeper *keeper.Keeper) (vals []cmttypes.Ge } // ValidateGenesis validates the provided staking genesis state to ensure the -// expected invariants holds. (i.e. params in correct bounds, no duplicate validators) +// expected invariants hold. (i.e. params in correct bounds, no duplicate validators) func ValidateGenesis(data *types.GenesisState) error { if err := validateGenesisStateValidators(data.Validators); err != nil { return err diff --git a/x/staking/keeper_bench_test.go b/x/staking/keeper_bench_test.go index 8d02ca17f0..5ef18c1e24 100644 --- a/x/staking/keeper_bench_test.go +++ b/x/staking/keeper_bench_test.go @@ -27,7 +27,7 @@ import ( ) func BenchmarkApplyAndReturnValidatorSetUpdates(b *testing.B) { - // goal of this benchmark to measure the performance changes in ApplyAndReturnValidatorSetUpdates + // goal of this benchmark is to measure the performance changes in ApplyAndReturnValidatorSetUpdates // for dropping the bech32 conversion and different index types. // therefore the validator power, max or state is not modified to focus on comparing the valset // for an update only. diff --git a/x/staking/module.go b/x/staking/module.go index da4882035d..11590a601b 100644 --- a/x/staking/module.go +++ b/x/staking/module.go @@ -295,7 +295,7 @@ func (am AppModule) RegisterStoreDecoder(sdr simtypes.StoreDecoderRegistry) { sdr[types.StoreKey] = simulation.NewDecodeStore(am.cdc) } -// WeightedOperations returns the all the staking module operations with their respective weights. +// WeightedOperations returns all the staking module operations with their respective weights. // migrate to WeightedOperationsX. This method is ignored when WeightedOperationsX exists and will be removed in the future func (am AppModule) WeightedOperations(simState module.SimulationState) []simtypes.WeightedOperation { return simulation.WeightedOperations( diff --git a/x/staking/types/params.go b/x/staking/types/params.go index 0e5ddee60b..2405a80ea1 100644 --- a/x/staking/types/params.go +++ b/x/staking/types/params.go @@ -25,7 +25,7 @@ const ( // DefaultMaxEntries in a UBD/RED pair DefaultMaxEntries uint32 = 7 - // DefaultHistoricalEntries entries is 10000. Apps that don't use IBC can ignore this + // DefaultHistoricalEntries is 10000. Apps that don't use IBC can ignore this // value by not adding the staking module to the application module manager's // SetOrderBeginBlockers. DefaultHistoricalEntries uint32 = 10000 diff --git a/x/staking/types/validator_test.go b/x/staking/types/validator_test.go index ada0e95f2f..3404c265e1 100644 --- a/x/staking/types/validator_test.go +++ b/x/staking/types/validator_test.go @@ -75,7 +75,7 @@ func TestRemoveTokens(t *testing.T) { validator = validator.RemoveTokens(math.NewInt(10)) require.Equal(t, int64(90), validator.Tokens.Int64()) - // update validator to from bonded -> unbonded + // update validator from bonded -> unbonded validator = validator.UpdateStatus(types.Unbonded) require.Equal(t, types.Unbonded, validator.Status) diff --git a/x/tx/internal/testpb/1.proto b/x/tx/internal/testpb/1.proto index aede0ed4f2..e0f2f831b7 100644 --- a/x/tx/internal/testpb/1.proto +++ b/x/tx/internal/testpb/1.proto @@ -11,7 +11,7 @@ option go_package = "cosmossdk.io/x/tx/internal/testpb"; // A is used for testing value renderers. message A { - // Fields that are parseable by SIGN_MODE_TEXTUAL. + // Fields that are parsable by SIGN_MODE_TEXTUAL. uint32 UINT32 = 1; uint64 UINT64 = 2; int32 INT32 = 3; @@ -104,4 +104,4 @@ message Ballot { string voter = 2; reserved 3; repeated WeightedBallotOption options = 4; -} \ No newline at end of file +} diff --git a/x/tx/signing/aminojson/encoder.go b/x/tx/signing/aminojson/encoder.go index 6c26bdb7ed..4a20ae29be 100644 --- a/x/tx/signing/aminojson/encoder.go +++ b/x/tx/signing/aminojson/encoder.go @@ -20,7 +20,7 @@ import ( // // (gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int" // -// In pulsar message they represented as strings, which is the only format this encoder supports. +// In pulsar message they are represented as strings, which is the only format this encoder supports. func cosmosIntEncoder(_ *Encoder, v protoreflect.Value, w io.Writer) error { switch val := v.Interface().(type) { case string: