Skip to content

Commit

Permalink
chore: fix spelling errors (cosmos#21235)
Browse files Browse the repository at this point in the history
  • Loading branch information
Hemanthghs authored Aug 9, 2024
1 parent f6fee98 commit 6f86b32
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
8 changes: 4 additions & 4 deletions x/gov/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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**

Expand All @@ -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

Expand Down Expand Up @@ -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:
Expand Down Expand Up @@ -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]
Expand Down
2 changes: 1 addition & 1 deletion x/gov/autocli.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"},
Expand Down
6 changes: 3 additions & 3 deletions x/gov/keeper/deposit.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand All @@ -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
}
Expand Down
2 changes: 1 addition & 1 deletion x/gov/keeper/msg_server_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1640,7 +1640,7 @@ func (suite *KeeperTestSuite) TestLegacyMsgDeposit() {
expErr: true,
expErrMsg: "not found",
},
"empty depositer": {
"empty depositor": {
preRun: func() uint64 {
return pID
},
Expand Down

0 comments on commit 6f86b32

Please sign in to comment.