From 6f86b323bfb2a961a2bd08e92c4c2f620abd8cd1 Mon Sep 17 00:00:00 2001 From: Hemanth Sai Date: Fri, 9 Aug 2024 12:14:22 +0530 Subject: [PATCH] chore: fix spelling errors (#21235) --- x/gov/README.md | 8 ++++---- x/gov/autocli.go | 2 +- x/gov/keeper/deposit.go | 6 +++--- x/gov/keeper/msg_server_test.go | 2 +- 4 files changed, 9 insertions(+), 9 deletions(-) diff --git a/x/gov/README.md b/x/gov/README.md index b8890b501aaa..872b6daa68c5 100644 --- a/x/gov/README.md +++ b/x/gov/README.md @@ -307,7 +307,7 @@ Since this is more of a social feature than a technical feature, we'll now get i This genesis entry, "constitution" hasn't been designed for existing chains, who should likely just ratify a constitution using their governance system. Instead, this is for new chains. It will allow for validators to have a much clearer idea of purpose and the expectations placed on them while operating their nodes. Likewise, for community members, the constitution will give them some idea of what to expect from both the "chain team" and the validators, respectively. -This constitution is designed to be immutable, and placed only in genesis, though that could change over time by a pull request to the cosmos-sdk that allows for the constitution to be changed by governance. Communities whishing to make amendments to their original constitution should use the governance mechanism and a "signaling proposal" to do exactly that. +This constitution is designed to be immutable, and placed only in genesis, though that could change over time by a pull request to the cosmos-sdk that allows for the constitution to be changed by governance. Communities wishing to make amendments to their original constitution should use the governance mechanism and a "signaling proposal" to do exactly that. **Ideal use scenario for a cosmos chain constitution** @@ -317,7 +317,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 @@ -681,7 +681,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: @@ -1080,7 +1080,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 a7b233756b7a..26508fb79821 100644 --- a/x/gov/autocli.go +++ b/x/gov/autocli.go @@ -65,7 +65,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 c93ea91e1a54..6759ac1407c3 100644 --- a/x/gov/keeper/deposit.go +++ b/x/gov/keeper/deposit.go @@ -216,7 +216,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 } @@ -242,13 +242,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 7015e047e7d7..a1460167f227 100644 --- a/x/gov/keeper/msg_server_test.go +++ b/x/gov/keeper/msg_server_test.go @@ -1640,7 +1640,7 @@ func (suite *KeeperTestSuite) TestLegacyMsgDeposit() { expErr: true, expErrMsg: "not found", }, - "empty depositer": { + "empty depositor": { preRun: func() uint64 { return pID },