diff --git a/CHANGELOG.md b/CHANGELOG.md index 3bf6d91b60..582a6ceff6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -70,7 +70,7 @@ Every module contains its own CHANGELOG.md. Please refer to the module you are i * (types) [#19512](https://github.com/cosmos/cosmos-sdk/pull/19512) The notion of basic manager does not exist anymore (and all related helpers). * The module manager now can do everything that the basic manager was doing. * `AppModuleBasic` has been deprecated for extension interfaces. - * Modules can now implement `appmodule.HasRegisterInterfaces`, `modue.HasGRPCGateway` and `module.HasAminoCodec` when relevant. + * Modules can now implement `appmodule.HasRegisterInterfaces`, `module.HasGRPCGateway` and `module.HasAminoCodec` when relevant. * SDK modules now directly implement those extension interfaces on `AppModule` instead of `AppModuleBasic`. * (client/keys) [#18950](https://github.com/cosmos/cosmos-sdk/pull/18950) Improve ` keys add`, ` keys import` and ` keys rename` by checking name validation. * (client/keys) [#18745](https://github.com/cosmos/cosmos-sdk/pull/18745) Improve ` keys export` and ` keys mnemonic` by adding --yes option to skip interactive confirmation. diff --git a/api/cosmos/tx/v1beta1/tx.pulsar.go b/api/cosmos/tx/v1beta1/tx.pulsar.go index eb43d518b4..562c0a0cb9 100644 --- a/api/cosmos/tx/v1beta1/tx.pulsar.go +++ b/api/cosmos/tx/v1beta1/tx.pulsar.go @@ -8768,7 +8768,7 @@ func (*ModeInfo_Multi_) isModeInfo_Sum() {} // Fee includes the amount of coins paid in fees and the maximum // gas to be used by the transaction. The ratio yields an effective "gasprice", -// which must be above some miminum to be accepted into the mempool. +// which must be above some minimum to be accepted into the mempool. type Fee struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache diff --git a/client/docs/swagger-ui/swagger.yaml b/client/docs/swagger-ui/swagger.yaml index 587653a77a..a3b70bb653 100644 --- a/client/docs/swagger-ui/swagger.yaml +++ b/client/docs/swagger-ui/swagger.yaml @@ -58575,7 +58575,7 @@ definitions: gas to be used by the transaction. The ratio yields an effective "gasprice", - which must be above some miminum to be accepted into the mempool. + which must be above some minimum to be accepted into the mempool. cosmos.tx.v1beta1.GetBlockWithTxsResponse: type: object properties: diff --git a/cliff.toml b/cliff.toml index 7c023e1b54..1dcdbeff52 100644 --- a/cliff.toml +++ b/cliff.toml @@ -71,7 +71,7 @@ split_commits = true # regex for preprocessing the commit messages commit_preprocessors = [ { pattern = '.*', replace_command = 'sed -E "s/^(\S+)\s(.+)\s\((#[0-9]+)\)$/\1 (\3) \2/"' }, - # A reference to an issue is appened to commits that looks like "(#1234)", this will be replaced + # A reference to an issue is append to commits that looks like "(#1234)", this will be replaced # with a link to that issue, e.g. "[#$1234](https://github.com/cosmos/cosmos-sdk/issues/1234)". { pattern = '\(#(\d+)\)', replace = "[#${1}](https://github.com/cosmos/cosmos-sdk/issues/${1})" }, # replace multiple spaces with one space diff --git a/core/appmodule/v2/module.go b/core/appmodule/v2/module.go index 4a3dece06e..f934be5127 100644 --- a/core/appmodule/v2/module.go +++ b/core/appmodule/v2/module.go @@ -97,7 +97,7 @@ type HasUpdateValidators interface { type ValidatorUpdate struct { PubKey []byte PubKeyType string - Power int64 // updated power of the validtor + Power int64 // updated power of the validator } // HasRegisterInterfaces is the interface for modules to register their msg types. diff --git a/crypto/keys/secp256k1/internal/secp256k1/libsecp256k1/include/secp256k1.h b/crypto/keys/secp256k1/internal/secp256k1/libsecp256k1/include/secp256k1.h index f268e309d0..76af839691 100644 --- a/crypto/keys/secp256k1/internal/secp256k1/libsecp256k1/include/secp256k1.h +++ b/crypto/keys/secp256k1/internal/secp256k1/libsecp256k1/include/secp256k1.h @@ -357,7 +357,7 @@ SECP256K1_API int secp256k1_ecdsa_signature_serialize_compact( /** Verify an ECDSA signature. * * Returns: 1: correct signature - * 0: incorrect or unparseable signature + * 0: incorrect or unparsable signature * Args: ctx: a secp256k1 context object, initialized for verification. * In: sig: the signature being verified (cannot be NULL) * msg32: the 32-byte message hash being verified (cannot be NULL) diff --git a/crypto/keys/secp256k1/internal/secp256k1/libsecp256k1/src/ecmult_impl.h b/crypto/keys/secp256k1/internal/secp256k1/libsecp256k1/src/ecmult_impl.h index 4e40104ad4..17746eab76 100644 --- a/crypto/keys/secp256k1/internal/secp256k1/libsecp256k1/src/ecmult_impl.h +++ b/crypto/keys/secp256k1/internal/secp256k1/libsecp256k1/src/ecmult_impl.h @@ -290,7 +290,7 @@ static void secp256k1_ecmult(const secp256k1_ecmult_context *ctx, secp256k1_gej #ifdef USE_ENDOMORPHISM secp256k1_ge pre_a_lam[ECMULT_TABLE_SIZE(WINDOW_A)]; secp256k1_scalar na_1, na_lam; - /* Splitted G factors. */ + /* Split G factors. */ secp256k1_scalar ng_1, ng_128; int wnaf_na_1[130]; int wnaf_na_lam[130]; diff --git a/docs/architecture/PROCESS.md b/docs/architecture/PROCESS.md index a237d0c653..8c59001201 100644 --- a/docs/architecture/PROCESS.md +++ b/docs/architecture/PROCESS.md @@ -49,7 +49,7 @@ DRAFT -> PROPOSED -> LAST CALL yyyy-mm-dd -> ACCEPTED | REJECTED -> SUPERSEDED b * `LAST CALL `: [optional] clear notify that we are close to accept updates. Changing a status to `LAST CALL` means that social consensus (of Cosmos SDK maintainers) has been reached and we still want to give it a time to let the community react or analyze. * `ACCEPTED`: ADR which will represent a currently implemented or to be implemented architecture design. * `REJECTED`: ADR can go from PROPOSED or ACCEPTED to rejected if the consensus among project stakeholders will decide so. -* `SUPERSEEDED by ADR-xxx`: ADR which has been superseded by a new ADR. +* `SUPERSEDED by ADR-xxx`: ADR which has been superseded by a new ADR. * `ABANDONED`: the ADR is no longer pursued by the original authors. ## Language used in ADR diff --git a/docs/architecture/adr-034-account-rekeying.md b/docs/architecture/adr-034-account-rekeying.md index 53fef6cf8e..951c30f6f8 100644 --- a/docs/architecture/adr-034-account-rekeying.md +++ b/docs/architecture/adr-034-account-rekeying.md @@ -68,7 +68,7 @@ Breaks the current assumed relationship between address and pubkeys as H(pubkey) ### Neutral -* While the purpose of this is intended to allow the owner of an account to update to a new pubkey they own, this could technically also be used to transfer ownership of an account to a new owner. For example, this could be use used to sell a staked position without unbonding or an account that has vesting tokens. However, the friction of this is very high as this would essentially have to be done as a very specific OTC trade. Furthermore, additional constraints could be added to prevent accouns with Vesting tokens to use this feature. +* While the purpose of this is intended to allow the owner of an account to update to a new pubkey they own, this could technically also be used to transfer ownership of an account to a new owner. For example, this could be use used to sell a staked position without unbonding or an account that has vesting tokens. However, the friction of this is very high as this would essentially have to be done as a very specific OTC trade. Furthermore, additional constraints could be added to prevent accounts with Vesting tokens to use this feature. * Will require that PubKeys for an account are included in the genesis exports. ## References diff --git a/docs/architecture/adr-043-nft-module.md b/docs/architecture/adr-043-nft-module.md index 87b4dbb5ee..85d439f7ef 100644 --- a/docs/architecture/adr-043-nft-module.md +++ b/docs/architecture/adr-043-nft-module.md @@ -156,7 +156,7 @@ message MsgSend { string class_id = 1; string id = 2; string sender = 3; - string reveiver = 4; + string receiver = 4; } message MsgSendResponse {} ``` diff --git a/docs/architecture/adr-050-sign-mode-textual.md b/docs/architecture/adr-050-sign-mode-textual.md index 6432489aa5..8eec8e42b2 100644 --- a/docs/architecture/adr-050-sign-mode-textual.md +++ b/docs/architecture/adr-050-sign-mode-textual.md @@ -285,7 +285,7 @@ Moreover, the renderer must provide 2 functions: one for formatting from Protobu ### Require signing over the `TxBody` and `AuthInfo` raw bytes -Recall that the transaction bytes merklelized on chain are the Protobuf binary serialization of [TxRaw](hhttps://buf.build/cosmos/cosmos-sdk/docs/main:cosmos.tx.v1beta1#cosmos.tx.v1beta1.TxRaw), which contains the `body_bytes` and `auth_info_bytes`. Moreover, the transaction hash is defined as the SHA256 hash of the `TxRaw` bytes. We require that the user signs over these bytes in SIGN_MODE_TEXTUAL, more specifically over the following string: +Recall that the transaction bytes merklelized on chain are the Protobuf binary serialization of [TxRaw](https://buf.build/cosmos/cosmos-sdk/docs/main:cosmos.tx.v1beta1#cosmos.tx.v1beta1.TxRaw), which contains the `body_bytes` and `auth_info_bytes`. Moreover, the transaction hash is defined as the SHA256 hash of the `TxRaw` bytes. We require that the user signs over these bytes in SIGN_MODE_TEXTUAL, more specifically over the following string: ``` *Hash of raw bytes: diff --git a/docs/architecture/adr-063-core-module-api.md b/docs/architecture/adr-063-core-module-api.md index 22dfaf8494..74212b2982 100644 --- a/docs/architecture/adr-063-core-module-api.md +++ b/docs/architecture/adr-063-core-module-api.md @@ -199,7 +199,7 @@ func NewKeeper(logger log.Logger) Keeper { Modules will provide their core services to the runtime module via extension interfaces built on top of the `cosmossdk.io/core/appmodule.AppModule` tag interface. This tag interface requires only two empty methods which -allow `depinject` to identify implementors as `depinject.OnePerModule` types and as app module implementations: +allow `depinject` to identify implementers as `depinject.OnePerModule` types and as app module implementations: ```go type AppModule interface { diff --git a/docs/learn/advanced/05-encoding.md b/docs/learn/advanced/05-encoding.md index 0d9607f3ef..8e2ed85d56 100644 --- a/docs/learn/advanced/05-encoding.md +++ b/docs/learn/advanced/05-encoding.md @@ -59,7 +59,7 @@ Modules are encouraged to utilize Protobuf encoding for their respective types. In addition to [following official Protocol Buffer guidelines](https://developers.google.com/protocol-buffers/docs/proto3#simple), we recommend using these annotations in .proto files when dealing with interfaces: -* use `cosmos_proto.accepts_interface` to annote `Any` fields that accept interfaces +* use `cosmos_proto.accepts_interface` to annotate `Any` fields that accept interfaces * pass the same fully qualified name as `protoName` to `InterfaceRegistry.RegisterInterface` * example: `(cosmos_proto.accepts_interface) = "cosmos.gov.v1beta1.Content"` (and not just `Content`) * annotate interface implementations with `cosmos_proto.implements_interface` diff --git a/docs/spec/fee_distribution/f1_fee_distr.tex b/docs/spec/fee_distribution/f1_fee_distr.tex index 4bcfc7718b..6f230a2862 100644 --- a/docs/spec/fee_distribution/f1_fee_distr.tex +++ b/docs/spec/fee_distribution/f1_fee_distr.tex @@ -237,7 +237,7 @@ Thus this scheme has efficiency improvements, simplicity improvements, and expre \item Mention storage optimization for how to prune slashing entries in the uniform inflation and iteration over slashing case \item Add equation numbers \item perhaps re-organize so that the no iteration - \item Section on decimal precision considerations (would unums help?), and mitigating errors in calculation with floats and decimals. -- This probably belongs in a corrollary markdown file in the implementation + \item Section on decimal precision considerations (would unums help?), and mitigating errors in calculation with floats and decimals. -- This probably belongs in a corollary markdown file in the implementation \item Consider indicating that the withdraw action need not be a tx type and could instead happen 'transparently' when more coins are needed, if a chain desired this for UX / p2p efficiency. \end{itemize} diff --git a/proto/cosmos/tx/v1beta1/tx.proto b/proto/cosmos/tx/v1beta1/tx.proto index 6cbf6a0cdc..67444dd8d9 100644 --- a/proto/cosmos/tx/v1beta1/tx.proto +++ b/proto/cosmos/tx/v1beta1/tx.proto @@ -213,7 +213,7 @@ message ModeInfo { // Fee includes the amount of coins paid in fees and the maximum // gas to be used by the transaction. The ratio yields an effective "gasprice", -// which must be above some miminum to be accepted into the mempool. +// which must be above some minimum to be accepted into the mempool. message Fee { // amount is the amount of coins to be paid as a fee repeated cosmos.base.v1beta1.Coin amount = 1 [ diff --git a/tests/e2e/distribution/grpc_query_suite.go b/tests/e2e/distribution/grpc_query_suite.go index 6bdff1116a..7392c5fa1c 100644 --- a/tests/e2e/distribution/grpc_query_suite.go +++ b/tests/e2e/distribution/grpc_query_suite.go @@ -37,7 +37,7 @@ func (s *GRPCQueryTestSuite) SetupSuite() { s.Require().NoError(s.network.WaitForNextBlock()) } -// TearDownSuite cleans up the curret test network after _each_ test. +// TearDownSuite cleans up the current test network after _each_ test. func (s *GRPCQueryTestSuite) TearDownSuite() { s.T().Log("tearing down e2e test suite1") s.network.Cleanup() diff --git a/tests/e2e/distribution/withdraw_all_suite.go b/tests/e2e/distribution/withdraw_all_suite.go index fed25e0955..9dd1888c04 100644 --- a/tests/e2e/distribution/withdraw_all_suite.go +++ b/tests/e2e/distribution/withdraw_all_suite.go @@ -40,7 +40,7 @@ func (s *WithdrawAllTestSuite) SetupSuite() { s.Require().NoError(s.network.WaitForNextBlock()) } -// TearDownSuite cleans up the curret test network after _each_ test. +// TearDownSuite cleans up the current test network after _each_ test. func (s *WithdrawAllTestSuite) TearDownSuite() { s.T().Log("tearing down e2e test suite") s.network.Cleanup() diff --git a/tests/integration/staking/keeper/validator_test.go b/tests/integration/staking/keeper/validator_test.go index 7077223cc2..a19352f1cd 100644 --- a/tests/integration/staking/keeper/validator_test.go +++ b/tests/integration/staking/keeper/validator_test.go @@ -641,7 +641,7 @@ func TestApplyAndReturnValidatorSetUpdatesInserted(t *testing.T) { validators[1] = keeper.TestingUpdateValidator(f.stakingKeeper, f.sdkCtx, validators[1], false) applyValidatorSetUpdates(t, f.sdkCtx, f.stakingKeeper, 2) - // test validtor added at the beginning + // test validator added at the beginning // tendermintUpdate set: {} -> {c0} assert.NilError(t, f.stakingKeeper.SetValidator(f.sdkCtx, validators[2])) assert.NilError(t, f.stakingKeeper.SetValidatorByPowerIndex(f.sdkCtx, validators[2])) @@ -651,7 +651,7 @@ func TestApplyAndReturnValidatorSetUpdatesInserted(t *testing.T) { validators[2], _ = f.stakingKeeper.GetValidator(f.sdkCtx, val2bz) assert.DeepEqual(t, validators[2].ModuleValidatorUpdate(f.stakingKeeper.PowerReduction(f.sdkCtx)), updates[0]) - // test validtor added at the beginning + // test validator added at the beginning // tendermintUpdate set: {} -> {c0} assert.NilError(t, f.stakingKeeper.SetValidator(f.sdkCtx, validators[3])) assert.NilError(t, f.stakingKeeper.SetValidatorByPowerIndex(f.sdkCtx, validators[3])) @@ -661,7 +661,7 @@ func TestApplyAndReturnValidatorSetUpdatesInserted(t *testing.T) { validators[3], _ = f.stakingKeeper.GetValidator(f.sdkCtx, val3bz) assert.DeepEqual(t, validators[3].ModuleValidatorUpdate(f.stakingKeeper.PowerReduction(f.sdkCtx)), updates[0]) - // test validtor added at the end + // test validator added at the end // tendermintUpdate set: {} -> {c0} assert.NilError(t, f.stakingKeeper.SetValidator(f.sdkCtx, validators[4])) assert.NilError(t, f.stakingKeeper.SetValidatorByPowerIndex(f.sdkCtx, validators[4])) diff --git a/testutil/sims/simulation_helpers.go b/testutil/sims/simulation_helpers.go index 2c5fa7af25..c06ab9e3e6 100644 --- a/testutil/sims/simulation_helpers.go +++ b/testutil/sims/simulation_helpers.go @@ -23,7 +23,7 @@ import ( // SetupSimulation creates the config, db (levelDB), temporary directory and logger for the simulation tests. // If `skip` is false it skips the current test. `skip` should be set using the `FlagEnabledValue` flag. -// Returns error on an invalid db intantiation or temp dir creation. +// Returns error on an invalid db instantiation or temp dir creation. func SetupSimulation(config simtypes.Config, dirPrefix, dbName string, verbose, skip bool) (dbm.DB, string, log.Logger, bool, error) { if !skip { return nil, "", nil, true, nil diff --git a/types/tx/tx.pb.go b/types/tx/tx.pb.go index 8f35592976..96c73aef93 100644 --- a/types/tx/tx.pb.go +++ b/types/tx/tx.pb.go @@ -804,7 +804,7 @@ func (m *ModeInfo_Multi) GetModeInfos() []*ModeInfo { // Fee includes the amount of coins paid in fees and the maximum // gas to be used by the transaction. The ratio yields an effective "gasprice", -// which must be above some miminum to be accepted into the mempool. +// which must be above some minimum to be accepted into the mempool. type Fee struct { // amount is the amount of coins to be paid as a fee Amount github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,1,rep,name=amount,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"amount"` diff --git a/x/auth/migrations/legacytx/stdtx.go b/x/auth/migrations/legacytx/stdtx.go index 900991c014..dc5dba0988 100644 --- a/x/auth/migrations/legacytx/stdtx.go +++ b/x/auth/migrations/legacytx/stdtx.go @@ -20,7 +20,7 @@ var ( // StdFee includes the amount of coins paid in fees and the maximum // gas to be used by the transaction. The ratio yields an effective "gasprice", -// which must be above some miminum to be accepted into the mempool. +// which must be above some minimum to be accepted into the mempool. // [Deprecated] type StdFee struct { Amount sdk.Coins `json:"amount" yaml:"amount"` diff --git a/x/auth/vesting/README.md b/x/auth/vesting/README.md index 9d991ad8d0..222b73f6bc 100644 --- a/x/auth/vesting/README.md +++ b/x/auth/vesting/README.md @@ -610,7 +610,7 @@ simd tx vesting create-periodic-vesting-account cosmos1.. periods.json #### create-vesting-account -The `create-vesting-account` command creates a new vesting account funded with an allocation of tokens. The account can either be a delayed or continuous vesting account, which is determined by the '--delayed' flag. All vesting accouts created will have their start time set by the committed block's time. The end_time must be provided as a UNIX epoch timestamp. +The `create-vesting-account` command creates a new vesting account funded with an allocation of tokens. The account can either be a delayed or continuous vesting account, which is determined by the '--delayed' flag. All vesting accounts created will have their start time set by the committed block's time. The end_time must be provided as a UNIX epoch timestamp. ```bash simd tx vesting create-vesting-account [to_address] [amount] [end_time] [flags] diff --git a/x/authz/README.md b/x/authz/README.md index 5e5263055c..e1da4fceee 100644 --- a/x/authz/README.md +++ b/x/authz/README.md @@ -98,7 +98,7 @@ https://github.com/cosmos/cosmos-sdk/blob/v0.47.0-rc1/x/staking/types/authz.go#L In order to prevent DoS attacks, granting `StakeAuthorization`s with `x/authz` incurs gas. `StakeAuthorization` allows you to authorize another account to delegate, undelegate, or redelegate to validators. The authorizer can define a list of validators they allow or deny delegations to. The Cosmos SDK iterates over these lists and charge 10 gas for each validator in both of the lists. -Since the state maintaining a list for granter, grantee pair with same expiration, we are iterating over the list to remove the grant (in case of any revoke of paritcular `msgType`) from the list and we are charging 20 gas per iteration. +Since the state maintaining a list for granter, grantee pair with same expiration, we are iterating over the list to remove the grant (in case of any revoke of particular `msgType`) from the list and we are charging 20 gas per iteration. ## State @@ -124,7 +124,7 @@ In `EndBlock` (which runs for every block) we continuously check and prune the e https://github.com/cosmos/cosmos-sdk/blob/5f4ddc6f80f9707320eec42182184207fff3833a/x/authz/keeper/keeper.go#L378-L403 ``` -* GrantQueue: `0x02 | expiration_bytes | granter_address_len (1 byte) | granter_address_bytes | grantee_address_len (1 byte) | grantee_address_bytes -> ProtocalBuffer(GrantQueueItem)` +* GrantQueue: `0x02 | expiration_bytes | granter_address_len (1 byte) | granter_address_bytes | grantee_address_len (1 byte) | grantee_address_bytes -> ProtocolBuffer(GrantQueueItem)` The `expiration_bytes` are the expiration date in UTC with the format `"2006-01-02T15:04:05.000000000"`. diff --git a/x/authz/keeper/keeper.go b/x/authz/keeper/keeper.go index 3c8cae7ec4..1079629709 100644 --- a/x/authz/keeper/keeper.go +++ b/x/authz/keeper/keeper.go @@ -20,7 +20,7 @@ import ( sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" ) -// TODO: Revisit this once we have propoer gas fee framework. +// TODO: Revisit this once we have proper gas fee framework. // Tracking issues https://github.com/cosmos/cosmos-sdk/issues/9054, // https://github.com/cosmos/cosmos-sdk/discussions/9072 const gasCostPerIteration = uint64(20) diff --git a/x/evidence/CHANGELOG.md b/x/evidence/CHANGELOG.md index 5537b5a53c..ae72299b60 100644 --- a/x/evidence/CHANGELOG.md +++ b/x/evidence/CHANGELOG.md @@ -48,7 +48,7 @@ Ref: https://keepachangelog.com/en/1.0.0/ ### API Breaking Changes -* [#16008](https://github.com/cosmos/cosmos-sdk/pull/16008) NewKeeper now takes in a KVStoreService instead of KVStoreKey, most functions use context.Context instead of sdk.Context and `IterateEvidence` callback function now returns an error to stop interation (`errors.ErrStopIterating`). +* [#16008](https://github.com/cosmos/cosmos-sdk/pull/16008) NewKeeper now takes in a KVStoreService instead of KVStoreKey, most functions use context.Context instead of sdk.Context and `IterateEvidence` callback function now returns an error to stop iteration (`errors.ErrStopIterating`). * (keeper) [#15825](https://github.com/cosmos/cosmos-sdk/pull/15825) Evidence constructor now requires an `address.Codec` (`import "cosmossdk.io/core/address"`) * [#16336](https://github.com/cosmos/cosmos-sdk/pull/16336) Use collections for state management: * Removed: keeper `SetEvidence`, `GetEvidence`, `IterateEvidences`, `GetAllEvidences`, `MustMarshalEvidence`, `MustUnmarshalEvidence`, `MarshalEvidence`, `UnmarshalEvidence` diff --git a/x/feegrant/filtered_fee.go b/x/feegrant/filtered_fee.go index 8b10b98237..e657f2feb9 100644 --- a/x/feegrant/filtered_fee.go +++ b/x/feegrant/filtered_fee.go @@ -13,7 +13,7 @@ import ( sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" ) -// TODO: Revisit this once we have propoer gas fee framework. +// TODO: Revisit this once we have proper gas fee framework. // Tracking issues https://github.com/cosmos/cosmos-sdk/issues/9054, https://github.com/cosmos/cosmos-sdk/discussions/9072 const ( gasCostPerIteration = uint64(10) diff --git a/x/gov/keeper/msg_server.go b/x/gov/keeper/msg_server.go index 02120624a5..fd05d4a29b 100644 --- a/x/gov/keeper/msg_server.go +++ b/x/gov/keeper/msg_server.go @@ -60,7 +60,7 @@ func (k msgServer) SubmitProposal(ctx context.Context, msg *v1.MsgSubmitProposal } // This method checks that all message metadata, summary and title - // has te expected length defined in the module configuration. + // has the expected length defined in the module configuration. if err := k.validateProposalLengths(msg.Metadata, msg.Title, msg.Summary); err != nil { return nil, err } diff --git a/x/params/README.md b/x/params/README.md index f26ec5c92b..961b1f1283 100644 --- a/x/params/README.md +++ b/x/params/README.md @@ -76,4 +76,4 @@ Modules often define parameters as a proto message. The generated struct can imp * `KeyTable.RegisterParamSet()`: registers all parameters in the struct * `Subspace.{Get, Set}ParamSet()`: Get to & Set from the struct -The implementor should be a pointer in order to use `GetParamSet()`. +The implementer should be a pointer in order to use `GetParamSet()`. diff --git a/x/staking/types/authz.go b/x/staking/types/authz.go index aa70ba70b7..90fa856164 100644 --- a/x/staking/types/authz.go +++ b/x/staking/types/authz.go @@ -12,7 +12,7 @@ import ( sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" ) -// TODO: Revisit this once we have propoer gas fee framework. +// TODO: Revisit this once we have proper gas fee framework. // Tracking issues https://github.com/cosmos/cosmos-sdk/issues/9054, https://github.com/cosmos/cosmos-sdk/discussions/9072 const gasCostPerIteration = uint64(10)