From 4c6bdd257aaad785eaf64400eb28c7db7eb8a5cb Mon Sep 17 00:00:00 2001 From: crStiv Date: Mon, 28 Jul 2025 17:00:51 +0300 Subject: [PATCH] docs: fix multiple typos (#25019) Co-authored-by: Alex | Interchain Labs --- tests/e2e/gov/grpc.go | 4 ++-- x/gov/README.md | 6 +++--- x/gov/autocli.go | 2 +- x/gov/keeper/deposit.go | 6 +++--- x/gov/keeper/msg_server_test.go | 2 +- x/group/simulation/operations.go | 8 ++++---- x/group/types.go | 4 ++-- x/mint/simulation/genesis_test.go | 2 +- x/params/keeper/keeper_test.go | 2 +- x/params/types/subspace.go | 2 +- 10 files changed, 19 insertions(+), 19 deletions(-) diff --git a/tests/e2e/gov/grpc.go b/tests/e2e/gov/grpc.go index 673f50be00..b5f0d2031f 100644 --- a/tests/e2e/gov/grpc.go +++ b/tests/e2e/gov/grpc.go @@ -236,8 +236,8 @@ func (s *E2ETestSuite) TestGetProposalDepositGRPC() { true, }, { - "get deposit with wrong depositer address", - fmt.Sprintf("%s/cosmos/gov/v1/proposals/%s/deposits/%s", val.APIAddress, "1", "wrongDepositerAddress"), + "get deposit with wrong depositor address", + fmt.Sprintf("%s/cosmos/gov/v1/proposals/%s/deposits/%s", val.APIAddress, "1", "wrongDepositorAddress"), true, }, { diff --git a/x/gov/README.md b/x/gov/README.md index 74d8c7e878..6819f263cb 100644 --- a/x/gov/README.md +++ b/x/gov/README.md @@ -313,7 +313,7 @@ As a chain developer, you decide that you'd like to provide clarity to your key * token holders * developers (yourself) -You use the constitution to immutably store some Markdown in genesis, so that when difficult questions come up, the constutituon can provide guidance to the community. +You use the constitution to immutably store some Markdown in genesis, so that when difficult questions come up, the constitution can provide guidance to the community. ### Proposals @@ -719,7 +719,7 @@ simd query gov --help The `deposit` command allows users to query a deposit for a given proposal from a given depositor. ```bash -simd query gov deposit [proposal-id] [depositer-addr] [flags] +simd query gov deposit [proposal-id] [depositor-addr] [flags] ``` Example: @@ -1149,7 +1149,7 @@ simd tx gov submit-legacy-proposal param-change proposal.json --from cosmos1.. #### cancel-proposal -Once proposal is canceled, from the deposits of proposal `deposits * proposal_cancel_ratio` will be burned or sent to `ProposalCancelDest` address , if `ProposalCancelDest` is empty then deposits will be burned. The `remaining deposits` will be sent to depositers. +Once proposal is canceled, from the deposits of proposal `deposits * proposal_cancel_ratio` will be burned or sent to `ProposalCancelDest` address , if `ProposalCancelDest` is empty then deposits will be burned. The `remaining deposits` will be sent to depositors. ```bash simd tx gov cancel-proposal [proposal-id] [flags] diff --git a/x/gov/autocli.go b/x/gov/autocli.go index 95079e2467..9261ae3d33 100644 --- a/x/gov/autocli.go +++ b/x/gov/autocli.go @@ -61,7 +61,7 @@ func (am AppModule) AutoCLIOptions() *autocliv1.ModuleOptions { }, { RpcMethod: "Deposit", - Use: "deposit [proposal-id] [depositer-addr]", + Use: "deposit [proposal-id] [depositor-addr]", Short: "Query details of a deposit", PositionalArgs: []*autocliv1.PositionalArgDescriptor{ {ProtoField: "proposal_id"}, diff --git a/x/gov/keeper/deposit.go b/x/gov/keeper/deposit.go index af4979504e..b4cdd41990 100644 --- a/x/gov/keeper/deposit.go +++ b/x/gov/keeper/deposit.go @@ -195,7 +195,7 @@ func (k Keeper) ChargeDeposit(ctx context.Context, proposalID uint64, destAddres } for _, deposit := range deposits { - depositerAddress, err := k.authKeeper.AddressCodec().StringToBytes(deposit.Depositor) + depositorAddress, err := k.authKeeper.AddressCodec().StringToBytes(deposit.Depositor) if err != nil { return err } @@ -221,13 +221,13 @@ func (k Keeper) ChargeDeposit(ctx context.Context, proposalID uint64, destAddres if !remainingAmount.IsZero() { err := k.bankKeeper.SendCoinsFromModuleToAccount( - ctx, types.ModuleName, depositerAddress, remainingAmount, + ctx, types.ModuleName, depositorAddress, remainingAmount, ) if err != nil { return err } } - err = k.Deposits.Remove(ctx, collections.Join(deposit.ProposalId, sdk.AccAddress(depositerAddress))) + err = k.Deposits.Remove(ctx, collections.Join(deposit.ProposalId, sdk.AccAddress(depositorAddress))) if err != nil { return err } diff --git a/x/gov/keeper/msg_server_test.go b/x/gov/keeper/msg_server_test.go index 0b873814cb..77ce5c4f08 100644 --- a/x/gov/keeper/msg_server_test.go +++ b/x/gov/keeper/msg_server_test.go @@ -1406,7 +1406,7 @@ func (suite *KeeperTestSuite) TestLegacyMsgDeposit() { expErr: true, expErrMsg: "not found", }, - "empty depositer": { + "empty depositor": { preRun: func() uint64 { return pID }, diff --git a/x/group/simulation/operations.go b/x/group/simulation/operations.go index 90fd98ab46..5179035552 100644 --- a/x/group/simulation/operations.go +++ b/x/group/simulation/operations.go @@ -46,7 +46,7 @@ var ( const ( OpMsgCreateGroup = "op_weight_msg_create_group" OpMsgUpdateGroupAdmin = "op_weight_msg_update_group_admin" - OpMsgUpdateGroupMetadata = "op_wieght_msg_update_group_metadata" + OpMsgUpdateGroupMetadata = "op_weight_msg_update_group_metadata" OpMsgUpdateGroupMembers = "op_weight_msg_update_group_members" OpMsgCreateGroupPolicy = "op_weight_msg_create_group_account" OpMsgCreateGroupWithPolicy = "op_weight_msg_create_group_with_policy" @@ -694,9 +694,9 @@ func simulateMsgUpdateGroupMembers( } // set existing random group member weight to zero to remove from the group - existigMembers := res.Members - if len(existigMembers) > 1 { - memberToRemove := existigMembers[r.Intn(len(existigMembers))] + existingMembers := res.Members + if len(existingMembers) > 1 { + memberToRemove := existingMembers[r.Intn(len(existingMembers))] var isDuplicateMember bool for idx, m := range members { if m.Address == memberToRemove.Member.Address { diff --git a/x/group/types.go b/x/group/types.go index 49cbaa5d58..a2f6304e38 100644 --- a/x/group/types.go +++ b/x/group/types.go @@ -56,7 +56,7 @@ func NewThresholdDecisionPolicy(threshold string, votingPeriod, minExecutionPeri return &ThresholdDecisionPolicy{threshold, &DecisionPolicyWindows{votingPeriod, minExecutionPeriod}} } -// GetVotingPeriod returns the voitng period of ThresholdDecisionPolicy +// GetVotingPeriod returns the voting period of ThresholdDecisionPolicy func (p ThresholdDecisionPolicy) GetVotingPeriod() time.Duration { return p.Windows.VotingPeriod } @@ -161,7 +161,7 @@ func NewPercentageDecisionPolicy(percentage string, votingPeriod, executionPerio return &PercentageDecisionPolicy{percentage, &DecisionPolicyWindows{votingPeriod, executionPeriod}} } -// GetVotingPeriod returns the voitng period of PercentageDecisionPolicy +// GetVotingPeriod returns the voting period of PercentageDecisionPolicy func (p PercentageDecisionPolicy) GetVotingPeriod() time.Duration { return p.Windows.VotingPeriod } diff --git a/x/mint/simulation/genesis_test.go b/x/mint/simulation/genesis_test.go index a923a6845d..942c2089a4 100644 --- a/x/mint/simulation/genesis_test.go +++ b/x/mint/simulation/genesis_test.go @@ -19,7 +19,7 @@ import ( ) // TestRandomizedGenState tests the normal scenario of applying RandomizedGenState. -// Abonormal scenarios are not tested here. +// Abnormal scenarios are not tested here. func TestRandomizedGenState(t *testing.T) { encCfg := moduletestutil.MakeTestEncodingConfig(mint.AppModuleBasic{}) diff --git a/x/params/keeper/keeper_test.go b/x/params/keeper/keeper_test.go index 3f68c91429..8df5051d3d 100644 --- a/x/params/keeper/keeper_test.go +++ b/x/params/keeper/keeper_test.go @@ -231,7 +231,7 @@ func TestSubspace(t *testing.T) { require.Equal(t, kv.param, indirect(kv.ptr), "stored param not equal, tc #%d", i) require.Panics(t, func() { space.Get(ctx, []byte("invalid"), kv.ptr) }, "invalid space.Get not panics when no value exists, tc #%d", i) - require.Equal(t, kv.param, indirect(kv.ptr), "invalid space.Get unmarshalls when no value existt, tc #%d", i) + require.Equal(t, kv.param, indirect(kv.ptr), "invalid space.Get unmarshalls when no value exist, tc #%d", i) require.Panics(t, func() { space.Get(ctx, []byte(kv.key), nil) }, "invalid space.Get not panics when the pointer is nil, tc #%d", i) require.Panics(t, func() { space.Get(ctx, []byte(kv.key), new(invalid)) }, "invalid space.Get not panics when the pointer is different type, tc #%d", i) diff --git a/x/params/types/subspace.go b/x/params/types/subspace.go index 392851678e..4bf299c2b1 100644 --- a/x/params/types/subspace.go +++ b/x/params/types/subspace.go @@ -163,7 +163,7 @@ func (s Subspace) Modified(ctx sdk.Context, key []byte) bool { return tstore.Has(key) } -// checkType verifies that the provided key and value are comptable and registered. +// checkType verifies that the provided key and value are compatible and registered. func (s Subspace) checkType(key []byte, value any) { attr, ok := s.table.m[string(key)] if !ok {