Skip to content

Commit

Permalink
chore: fix spelling errors (#2054)
Browse files Browse the repository at this point in the history
chore: spelling errors fixes

Co-authored-by: github-merge-queue <[email protected]>
  • Loading branch information
github-prbot and github-merge-queue[bot] authored Jul 17, 2024
1 parent 9bb62ec commit 725b45e
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion docs/internal/migrations/cosmos-sdk-v0.50-migration.md
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ go get github.com/cosmos/ibc-go/modules/[email protected]
* `sdk.NewDecFromInt` -> `math.LegacyNewDecFromInt`
* `sdk.OneDec` -> `math.LegacyOneDec`
* `sdk.NewDecWithPrec` -> `math.LegacyNewDecWithPrec`
* also update all function defintions that are using them
* also update all function definitions that are using them

* use `math.NewInt` instead of `sdk.NewInt`
* `sdktypes.NewInt`,
Expand Down
2 changes: 1 addition & 1 deletion proto/interchain_security/ccv/provider/v1/tx.proto
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ message MsgConsumerAddition {
// channel is created on top of the same connection as the CCV channel.
// Note that transfer_channel_id is the ID of the channel end on the consumer
// chain. it is most relevant for chains performing a sovereign to consumer
// changeover in order to maintan the existing ibc transfer channel
// changeover in order to maintain the existing ibc transfer channel
string distribution_transmission_channel = 12;
// Corresponds to the percentage of validators that have to validate the chain under the Top N case.
// For example, 53 corresponds to a Top 53% chain, meaning that the top 53% provider validators by voting power
Expand Down
2 changes: 1 addition & 1 deletion tests/e2e/trace_handlers_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ func TestMarshalAndUnmarshalChainState(t *testing.T) {
},
},
}},
"IBC trasfer update params": {ChainState{
"IBC transfer update params": {ChainState{
ValBalances: &map[ValidatorID]uint{
ValidatorID("alice"): 9889999998,
ValidatorID("bob"): 9960000001,
Expand Down
2 changes: 1 addition & 1 deletion tests/integration/normal_operations.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ func (k CCVTestSuite) TestHistoricalInfo() { //nolint:govet // this is a test so
// increased by HistoricalEntries in order to prune the historical info less or equal to the current block height
// Note that historical info containing the created validators were stored during the BeginBlocker of the current block
// at the moment of creation and thus are indexed with the respective block heights InitHeight and InitHeight+1
// Last saved historical info was in the last commited block k.consumerChain.GetContext().BlockHeight(), meaning that
// Last saved historical info was in the last committed block k.consumerChain.GetContext().BlockHeight(), meaning that
// if we want to prune old entries we need to start from the last saved historical info which is k.consumerChain.GetContext().BlockHeight() - 1
testSetup := []func(CCVTestSuite){
createVal,
Expand Down
2 changes: 1 addition & 1 deletion tests/integration/provider_gov_hooks.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import (
)

// tests AfterProposalSubmission and AfterProposalVotingPeriodEnded hooks
// hooks require adding a proposal in the gov module and regitering a consumer chain with the provider module
// hooks require adding a proposal in the gov module and registering a consumer chain with the provider module
func (s *CCVTestSuite) TestAfterPropSubmissionAndVotingPeriodEnded() {
ctx := s.providerChain.GetContext()
providerKeeper := s.providerApp.GetProviderKeeper()
Expand Down
2 changes: 1 addition & 1 deletion tests/integration/slashing.go
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ func (s *CCVTestSuite) TestRelayAndApplyDowntimePacket() {
relayAllCommittedPackets(s, s.providerChain, bundle.Path,
ccv.ProviderPortID, bundle.Path.EndpointB.ChannelID, 1)

// check that each consumer updated its VSC ID for the subsequent not commited block ctx.BlockHeight()
// check that each consumer updated its VSC ID for the subsequent not committed block ctx.BlockHeight()
consumerKeeper := bundle.GetKeeper()
ctx := bundle.GetCtx()
actualValsetUpdateID := consumerKeeper.GetHeightValsetUpdateID(
Expand Down
4 changes: 2 additions & 2 deletions x/ccv/provider/keeper/consumer_equivocation.go
Original file line number Diff line number Diff line change
Expand Up @@ -397,7 +397,7 @@ func (k Keeper) JailAndTombstoneValidator(ctx sdk.Context, providerAddr types.Pr
if err != nil && errors.Is(err, stakingtypes.ErrNoValidatorFound) {
return errorsmod.Wrapf(slashingtypes.ErrNoValidatorForAddress, "provider consensus address: %s", providerAddr.String())
} else if err != nil {
return errorsmod.Wrapf(slashingtypes.ErrBadValidatorAddr, "unkown error looking for provider consensus address: %s", providerAddr.String())
return errorsmod.Wrapf(slashingtypes.ErrBadValidatorAddr, "unknown error looking for provider consensus address: %s", providerAddr.String())
}

if validator.IsUnbonded() {
Expand Down Expand Up @@ -467,7 +467,7 @@ func (k Keeper) SlashValidator(ctx sdk.Context, providerAddr types.ProviderConsA
if err != nil && errors.Is(err, stakingtypes.ErrNoValidatorFound) {
return errorsmod.Wrapf(slashingtypes.ErrNoValidatorForAddress, "provider consensus address: %s", providerAddr.String())
} else if err != nil {
return errorsmod.Wrapf(slashingtypes.ErrBadValidatorAddr, "unkown error looking for provider consensus address: %s", providerAddr.String())
return errorsmod.Wrapf(slashingtypes.ErrBadValidatorAddr, "unknown error looking for provider consensus address: %s", providerAddr.String())
}

if validator.IsUnbonded() {
Expand Down

0 comments on commit 725b45e

Please sign in to comment.