From 7a93e484abcad55dd09f019e14477f807f5d23ab Mon Sep 17 00:00:00 2001 From: omahs <73983677+omahs@users.noreply.github.com> Date: Tue, 3 Sep 2024 12:59:33 +0200 Subject: [PATCH 1/7] fix typo --- docs/build/building-apps/05-app-testnet.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/build/building-apps/05-app-testnet.md b/docs/build/building-apps/05-app-testnet.md index 01c1267142d1..d773ffd4ed9f 100644 --- a/docs/build/building-apps/05-app-testnet.md +++ b/docs/build/building-apps/05-app-testnet.md @@ -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()) From 6801b92ec6985747db3e5d3b045c5a1b6288f502 Mon Sep 17 00:00:00 2001 From: omahs <73983677+omahs@users.noreply.github.com> Date: Tue, 3 Sep 2024 13:03:59 +0200 Subject: [PATCH 2/7] fix typo --- docs/build/building-modules/03-msg-services.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/build/building-modules/03-msg-services.md b/docs/build/building-modules/03-msg-services.md index 99725182a73c..14f906119015 100644 --- a/docs/build/building-modules/03-msg-services.md +++ b/docs/build/building-modules/03-msg-services.md @@ -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) From 837caa0c076c9c758408d6499d21ac1c3c41b9c1 Mon Sep 17 00:00:00 2001 From: omahs <73983677+omahs@users.noreply.github.com> Date: Tue, 3 Sep 2024 13:06:13 +0200 Subject: [PATCH 3/7] fix typos --- types/address/hash.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/types/address/hash.go b/types/address/hash.go index ee7398518fb2..7d4db39f85ee 100644 --- a/types/address/hash.go +++ b/types/address/hash.go @@ -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]) } @@ -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 { From 2c971df07eaa0e2f7a17ac64a3ec56bc130e3027 Mon Sep 17 00:00:00 2001 From: omahs <73983677+omahs@users.noreply.github.com> Date: Tue, 3 Sep 2024 13:07:20 +0200 Subject: [PATCH 4/7] fix typo --- x/slashing/keeper/keeper.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/x/slashing/keeper/keeper.go b/x/slashing/keeper/keeper.go index 8ea641ca4b74..cb5d36e9088c 100644 --- a/x/slashing/keeper/keeper.go +++ b/x/slashing/keeper/keeper.go @@ -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) } From 7f82a49caa05250804945e1c533c453d5772cb20 Mon Sep 17 00:00:00 2001 From: omahs <73983677+omahs@users.noreply.github.com> Date: Tue, 3 Sep 2024 13:07:47 +0200 Subject: [PATCH 5/7] fix typo --- server/start.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/start.go b/server/start.go index 77a08645d45f..eb4081359618 100644 --- a/server/start.go +++ b/server/start.go @@ -907,7 +907,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, From bb3ec2b34e5171f5fbcd5b2a3d4c367ad0328580 Mon Sep 17 00:00:00 2001 From: omahs <73983677+omahs@users.noreply.github.com> Date: Tue, 3 Sep 2024 13:10:15 +0200 Subject: [PATCH 6/7] fix typos --- x/staking/keeper/msg_server_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/x/staking/keeper/msg_server_test.go b/x/staking/keeper/msg_server_test.go index d4995bf01319..06d68f032c2f 100644 --- a/x/staking/keeper/msg_server_test.go +++ b/x/staking/keeper/msg_server_test.go @@ -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{ @@ -1320,7 +1320,7 @@ func (s *KeeperTestSuite) TestConsKeyRotn() { name: "pubkey already associated with another validator", malleate: func() sdk.Context { return ctx }, isErr: true, - errMsg: "validator already exist for this pubkey; must use new validator pubkey", + errMsg: "validator already exists for this pubkey; must use new validator pubkey", newPubKey: existingPubkey, validator: validators[0].GetOperator(), }, From 0f32de30cb381004b07987f1f2b071b4bec9d38a Mon Sep 17 00:00:00 2001 From: Julien Robert Date: Wed, 4 Sep 2024 21:32:14 +0200 Subject: [PATCH 7/7] updates --- x/staking/keeper/msg_server_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/x/staking/keeper/msg_server_test.go b/x/staking/keeper/msg_server_test.go index cbc5351dd409..f436b2ebda00 100644 --- a/x/staking/keeper/msg_server_test.go +++ b/x/staking/keeper/msg_server_test.go @@ -1320,7 +1320,7 @@ func (s *KeeperTestSuite) TestConsKeyRotn() { name: "pubkey already associated with another validator", malleate: func() sdk.Context { return ctx }, isErr: true, - errMsg: "validator already exists for this pubkey; must use new validator pubkey", + errMsg: "validator already exist for this pubkey; must use new validator pubkey", newPubKey: existingPubkey, validator: validators[0].GetOperator(), },