From 94c98691a676f071256cd11447479cffdf8639c5 Mon Sep 17 00:00:00 2001 From: Cosmos SDK <113218068+github-prbot@users.noreply.github.com> Date: Wed, 7 Feb 2024 19:32:15 +0100 Subject: [PATCH] chore: fix spelling errors (#19369) Co-authored-by: github-merge-queue <118344674+github-merge-queue@users.noreply.github.com> Co-authored-by: Julien Robert --- x/auth/keeper/genesis.go | 2 +- x/staking/keeper/delegation.go | 2 +- x/staking/keeper/unbonding.go | 2 +- x/staking/types/keys.go | 4 ++-- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/x/auth/keeper/genesis.go b/x/auth/keeper/genesis.go index 050eb57129..8bb2cd2f5e 100644 --- a/x/auth/keeper/genesis.go +++ b/x/auth/keeper/genesis.go @@ -47,7 +47,7 @@ func (ak AccountKeeper) ExportGenesis(ctx context.Context) (*types.GenesisState, err := ak.Accounts.Walk(ctx, nil, func(key sdk.AccAddress, value sdk.AccountI) (stop bool, err error) { genAcc, ok := value.(types.GenesisAccount) if !ok { - return true, fmt.Errorf("unable to conver account with address %s into a genesis account: type %T", key, value) + return true, fmt.Errorf("unable to convert account with address %s into a genesis account: type %T", key, value) } genAccounts = append(genAccounts, genAcc) return false, nil diff --git a/x/staking/keeper/delegation.go b/x/staking/keeper/delegation.go index a092ed3068..87f405537c 100644 --- a/x/staking/keeper/delegation.go +++ b/x/staking/keeper/delegation.go @@ -627,7 +627,7 @@ func (k Keeper) SetRedelegationQueueTimeSlice(ctx context.Context, timestamp tim return k.RedelegationQueue.Set(ctx, timestamp, triplets) } -// InsertRedelegationQueue insert an redelegation delegation to the appropriate +// InsertRedelegationQueue insert a redelegation delegation to the appropriate // timeslice in the redelegation queue. func (k Keeper) InsertRedelegationQueue(ctx context.Context, red types.Redelegation, completionTime time.Time) error { timeSlice, err := k.GetRedelegationQueueTimeSlice(ctx, completionTime) diff --git a/x/staking/keeper/unbonding.go b/x/staking/keeper/unbonding.go index f27733193a..afe89f4fda 100644 --- a/x/staking/keeper/unbonding.go +++ b/x/staking/keeper/unbonding.go @@ -163,7 +163,7 @@ func (k Keeper) SetUnbondingDelegationByUnbondingID(ctx context.Context, ubd typ return k.SetUnbondingType(ctx, id, types.UnbondingType_UnbondingDelegation) } -// SetRedelegationByUnbondingID sets an index to look up an Redelegation by the unbondingID of an RedelegationEntry that it contains +// SetRedelegationByUnbondingID sets an index to look up a Redelegation by the unbondingID of a RedelegationEntry that it contains // Note, it does not set the redelegation itself, use SetRedelegation(ctx, red) for that func (k Keeper) SetRedelegationByUnbondingID(ctx context.Context, red types.Redelegation, id uint64) error { delAddr, err := k.authKeeper.AddressCodec().StringToBytes(red.DelegatorAddress) diff --git a/x/staking/types/keys.go b/x/staking/types/keys.go index e764c9c861..c519ce181a 100644 --- a/x/staking/types/keys.go +++ b/x/staking/types/keys.go @@ -46,8 +46,8 @@ var ( UnbondingDelegationByValIndexKey = collections.NewPrefix(51) // prefix for each key for an unbonding-delegation, by validator operator RedelegationKey = collections.NewPrefix(52) // key for a redelegation - RedelegationByValSrcIndexKey = collections.NewPrefix(53) // prefix for each key for an redelegation, by source validator operator - RedelegationByValDstIndexKey = collections.NewPrefix(54) // prefix for each key for an redelegation, by destination validator operator + RedelegationByValSrcIndexKey = collections.NewPrefix(53) // prefix for each key for a redelegation, by source validator operator + RedelegationByValDstIndexKey = collections.NewPrefix(54) // prefix for each key for a redelegation, by destination validator operator UnbondingIDKey = collections.NewPrefix(55) // key for the counter for the incrementing id for UnbondingOperations UnbondingIndexKey = collections.NewPrefix(56) // prefix for an index for looking up unbonding operations by their IDs