fix: typos across the codebase (#25041)

This commit is contained in:
strmfos 2025-07-29 21:17:30 +02:00 committed by GitHub
parent a7678f91f4
commit b12485beb5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
13 changed files with 14 additions and 14 deletions

View File

@ -14,7 +14,7 @@ func (am AppModule) AutoCLIOptions() *autocliv1.ModuleOptions {
{
RpcMethod: "VerifyInvariant",
Use: "invariant-broken [module-name] [invariant-route] --from mykey",
Short: "Submit proof that an invariant broken",
Short: "Submit proof that an invariant is broken",
PositionalArgs: []*autocliv1.PositionalArgDescriptor{
{ProtoField: "invariant_module_name"},
{ProtoField: "invariant_route"},

View File

@ -20,7 +20,7 @@ func NewInvarRoute(moduleName, route string, invar sdk.Invariant) InvarRoute {
}
}
// get the full invariance route
// get the full invariant route
func (i InvarRoute) FullRoute() string {
return i.ModuleName + "/" + i.Route
}

View File

@ -159,7 +159,7 @@ func (k Keeper) sendCommunityPoolToExternalPool(ctx sdk.Context) error {
amt, remaining := feePool.CommunityPool.TruncateDecimal()
ctx.Logger().Debug(
"sending distribution community pool amount to external pool pool",
"sending distribution community pool amount to external pool",
"pool", k.externalCommunityPool.GetCommunityPoolModule(),
"amount", amt.String(),
"remaining", remaining.String(),

View File

@ -150,7 +150,7 @@ func (k Keeper) CalculateDelegationRewards(ctx context.Context, val stakingtypes
currentStake := val.TokensFromShares(del.GetShares())
if stake.GT(currentStake) {
// AccountI for rounding inconsistencies between:
// Account for rounding inconsistencies between:
//
// currentStake: calculated as in staking with a single computation
// stake: calculated as an accumulation of stake

View File

@ -147,7 +147,7 @@ func (k msgServer) UpdateParams(ctx context.Context, msg *types.MsgUpdateParams)
func (k msgServer) CommunityPoolSpend(ctx context.Context, msg *types.MsgCommunityPoolSpend) (*types.MsgCommunityPoolSpendResponse, error) {
if k.HasExternalCommunityPool() {
return nil, errors.Wrapf(sdkerrors.ErrInvalidRequest, "external community pool is enabled - use the DistributFromCommunityPool method exposed by the external community pool")
return nil, errors.Wrapf(sdkerrors.ErrInvalidRequest, "external community pool is enabled - use the DistributeFromCommunityPool method exposed by the external community pool")
}
if err := k.validateAuthority(msg.Authority); err != nil {

View File

@ -67,7 +67,7 @@ func (suite *SimTestSuite) TestWeightedOperations() {
}
// TestSimulateMsgSetWithdrawAddress tests the normal scenario of a valid message of type TypeMsgSetWithdrawAddress.
// Abnormal scenarios, where the message is created by an errors, are not tested here.
// Abnormal scenarios, where the message is created by an error, are not tested here.
func (suite *SimTestSuite) TestSimulateMsgSetWithdrawAddress() {
// setup 3 accounts
s := rand.NewSource(1)

View File

@ -24,7 +24,7 @@ const (
// Keys for distribution store
// Items are stored with the following key: values
//
// - 0x00<proposalID_Bytes>: FeePol
// - 0x00<proposalID_Bytes>: FeePool
//
// - 0x01: sdk.ConsAddress
//

View File

@ -45,7 +45,7 @@ func (q Querier) CurrentEpoch(ctx context.Context, req *types.QueryCurrentEpochR
info, err := q.EpochInfo.Get(ctx, req.Identifier)
if err != nil {
return nil, errors.New("not available identifier")
return nil, errors.New("identifier not available")
}
return &types.QueryCurrentEpochResponse{

View File

@ -43,7 +43,7 @@ Ref: https://keepachangelog.com/en/1.0.0/
### API Breaking Changes
* [#16008](https://github.com/cosmos/cosmos-sdk/pull/16008) NewKeeper now takes in a KVStoreService instead of KVStoreKey, most functions use context.Context instead of sdk.Context and `IterateEvidence` callback function now returns an error to stop interation (`errors.ErrStopIterating`).
* [#16008](https://github.com/cosmos/cosmos-sdk/pull/16008) NewKeeper now takes in a KVStoreService instead of KVStoreKey, most functions use context.Context instead of sdk.Context and `IterateEvidence` callback function now returns an error to stop iteration (`errors.ErrStopIterating`).
* (keeper) [#15825](https://github.com/cosmos/cosmos-sdk/pull/15825) Evidence constructor now requires an `address.Codec` (`import "cosmossdk.io/core/address"`)
* [#16336](https://github.com/cosmos/cosmos-sdk/pull/16336) Use collections for state management:
* Removed: keeper `SetEvidence`, `GetEvidence`, `IterateEvidences`, `GetAllEvidences`, `MustMarshalEvidence`, `MustUnmarshalEvidence`, `MarshalEvidence`, `UnmarshalEvidence`

View File

@ -152,7 +152,7 @@ https://github.com/cosmos/cosmos-sdk/blob/v0.47.0-rc1/x/feegrant/feegrant.pb.go#
### FeeAllowanceQueue
Fee Allowances queue items are identified by combining the `FeeAllowancePrefixQueue` (i.e., 0x01), `expiration`, `grantee` (the account address of fee allowance grantee), `granter` (the account address of fee allowance granter). Endblocker checks `FeeAllowanceQueue` state for the expired grants and prunes them from `FeeAllowance` if there are any found.
Fee Allowances queue items are identified by combining the `FeeAllowancePrefixQueue` (i.e., 0x01), `expiration`, `grantee` (the account address of fee allowance grantee), `granter` (the account address of fee allowance granter). Endblocker checks `FeeAllowanceQueue` state for the expired grants and prunes them from `FeeAllowance` if there are any found.
Fee allowance queue keys are stored in the state as follows:

View File

@ -22,10 +22,10 @@ func TestBasicFeeValidAllow(t *testing.T) {
ctx := testCtx.Ctx.WithBlockHeader(cmtproto.Header{Height: 1})
badTime := ctx.BlockTime().AddDate(0, 0, -1)
allowace := &feegrant.BasicAllowance{
allowance := &feegrant.BasicAllowance{
Expiration: &badTime,
}
require.Error(t, allowace.ValidateBasic())
require.Error(t, allowance.ValidateBasic())
ctx = ctx.WithBlockHeader(cmtproto.Header{
Time: time.Now(),

View File

@ -1,6 +1,6 @@
package feegrant
// evidence module events
// feegrant module events
const (
EventTypeUseFeeGrant = "use_feegrant"
EventTypeRevokeFeeGrant = "revoke_feegrant"

View File

@ -87,7 +87,7 @@ func TestMultipleProposalsVoteRemoval(t *testing.T) {
require.NoError(t, govKeeper.AddVote(ctx, proposal2ID, addrs[0], v1.NewNonSplitVoteOption(v1.OptionNo), ""))
require.NoError(t, govKeeper.AddVote(ctx, proposal2ID, addrs[1], v1.NewNonSplitVoteOption(v1.OptionYes), ""))
// votes should eixst
// votes should exist
vote1Addr0, err := govKeeper.Votes.Get(ctx, collections.Join(proposal1ID, addrs[0]))
require.NoError(t, err)
require.Equal(t, v1.OptionYes, vote1Addr0.Options[0].Option)