chore: fix spelling errors (#19369)
Co-authored-by: github-merge-queue <118344674+github-merge-queue@users.noreply.github.com> Co-authored-by: Julien Robert <julien@rbrt.fr>
This commit is contained in:
parent
863194f99c
commit
94c98691a6
@ -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
|
||||
|
||||
@ -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)
|
||||
|
||||
@ -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)
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user