Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: fix typos (backport #21514) #21551

Merged
merged 1 commit into from
Sep 4, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/build/building-apps/05-app-testnet.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ When creating a testnet the important part is migrate the validator set from man
}
iterator.Close()

// Remove all valdiators from last validators store
// Remove all validators from last validators store
iterator = app.StakingKeeper.LastValidatorsIterator(ctx)
for ; iterator.Valid(); iterator.Next() {
app.StakingKeeper.LastValidatorPower.Delete(iterator.Key())
Expand Down
2 changes: 1 addition & 1 deletion docs/build/building-modules/03-msg-services.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ It is recommended to implement all validation checks in a separate function that
```go
ValidateMsgA(msg MsgA, now Time, gm GasMeter) error {
if now.Before(msg.Expire) {
return sdkerrrors.ErrInvalidRequest.Wrap("msg expired")
return sdkerrors.ErrInvalidRequest.Wrap("msg expired")
}
gm.ConsumeGas(1000, "signature verification")
return signatureVerificaton(msg.Prover, msg.Data)
Expand Down
2 changes: 1 addition & 1 deletion server/start.go
Original file line number Diff line number Diff line change
Expand Up @@ -906,7 +906,7 @@ func testnetify[T types.Application](ctx *Context, testnetAppCreator types.AppCr
return nil, err
}

// Create ValidatorSet struct containing just our valdiator.
// Create ValidatorSet struct containing just our validator.
newVal := &cmttypes.Validator{
Address: validatorAddress,
PubKey: userPubKey,
Expand Down
4 changes: 2 additions & 2 deletions types/address/hash.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ func Compose(typ string, subAddresses []Addressable) ([]byte, error) {
a := subAddresses[i].Address()
as[i], err = LengthPrefix(a)
if err != nil {
return nil, fmt.Errorf("not compatible sub-adddress=%v at index=%d [%w]", a, i, err)
return nil, fmt.Errorf("not compatible sub-address=%v at index=%d [%w]", a, i, err)
}
totalLen += len(as[i])
}
Expand All @@ -67,7 +67,7 @@ func Compose(typ string, subAddresses []Addressable) ([]byte, error) {
// is constructed from a module name and a sequence of derivation keys (at least one
// derivation key must be provided). The derivation keys must be unique
// in the module scope, and is usually constructed from some object id. Example, let's
// a x/dao module, and a new DAO object, it's address would be:
// a x/dao module, and a new DAO object, its address would be:
//
// address.Module(dao.ModuleName, newDAO.ID)
func Module(moduleName string, derivationKeys ...[]byte) []byte {
Expand Down
2 changes: 1 addition & 1 deletion x/slashing/keeper/keeper.go
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ func (k Keeper) GetAuthority() string {
return k.authority
}

// GetPubkey returns the pubkey from the adddress-pubkey relation
// GetPubkey returns the pubkey from the address-pubkey relation
func (k Keeper) GetPubkey(ctx context.Context, a cryptotypes.Address) (cryptotypes.PubKey, error) {
return k.AddrPubkeyRelation.Get(ctx, a)
}
Expand Down
2 changes: 1 addition & 1 deletion x/staking/keeper/msg_server_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -436,7 +436,7 @@ func (s *KeeperTestSuite) TestMsgEditValidator() {
expErrMsg: "validator does not exist",
},
{
name: "change commmission rate in <24hrs",
name: "change commission rate in <24hrs",
ctx: ctx,
input: &types.MsgEditValidator{
Description: types.Description{
Expand Down
Loading