diff --git a/client/debug/main.go b/client/debug/main.go index 70039e5049..6a3d44f852 100644 --- a/client/debug/main.go +++ b/client/debug/main.go @@ -75,7 +75,7 @@ func getCodecInterfaces() *cobra.Command { } } -// getCodecInterfaceImpls creates and returns a new cmd used for listing all registered implemenations of a given interface on the application codec. +// getCodecInterfaceImpls creates and returns a new cmd used for listing all registered implementations of a given interface on the application codec. func getCodecInterfaceImpls() *cobra.Command { return &cobra.Command{ Use: "list-implementations [interface]", diff --git a/client/rpc/tx.go b/client/rpc/tx.go index b611103eee..09c7b6657a 100644 --- a/client/rpc/tx.go +++ b/client/rpc/tx.go @@ -204,7 +204,7 @@ func parseHashFromInput(in []byte) ([]byte, error) { // That outputs a sdk.TxResponse as either the json or yaml. As json, we can't unmarshal it back into that struct, // though, because the height field ends up quoted which confuses json.Unmarshal (because it's for an int64 field). - // Try to find the txhash from json ouptut. + // Try to find the txhash from json output. resultTx := make(map[string]json.RawMessage) if err := json.Unmarshal(in, &resultTx); err == nil && len(resultTx["txhash"]) > 0 { // input was JSON, return the hash diff --git a/client/tx/tx.go b/client/tx/tx.go index 0b6e818671..044e52819e 100644 --- a/client/tx/tx.go +++ b/client/tx/tx.go @@ -245,7 +245,7 @@ func checkMultipleSigners(tx authsigning.Tx) error { // Sign signs a given tx with a named key. The bytes signed over are canconical. // The resulting signature will be added to the transaction builder overwriting the previous // ones if overwrite=true (otherwise, the signature will be appended). -// Signing a transaction with mutltiple signers in the DIRECT mode is not supprted and will +// Signing a transaction with mutltiple signers in the DIRECT mode is not supported and will // return an error. // An error is returned upon failure. func Sign(ctx context.Context, txf Factory, name string, txBuilder client.TxBuilder, overwriteSig bool) error { diff --git a/client/tx/tx_test.go b/client/tx/tx_test.go index 900d5ec9da..3f11b2a5fb 100644 --- a/client/tx/tx_test.go +++ b/client/tx/tx_test.go @@ -31,7 +31,7 @@ func newTestTxConfig() (client.TxConfig, codec.Codec) { return authtx.NewTxConfig(codec.NewProtoCodec(encodingConfig.InterfaceRegistry), authtx.DefaultSignModes), encodingConfig.Codec } -// mockContext is a mock client.Context to return abitrary simulation response, used to +// mockContext is a mock client.Context to return arbitrary simulation response, used to // unit test CalculateGas. type mockContext struct { gasUsed uint64 diff --git a/crypto/keys/ed25519/doc.go b/crypto/keys/ed25519/doc.go index e538a66003..31ab65349e 100644 --- a/crypto/keys/ed25519/doc.go +++ b/crypto/keys/ed25519/doc.go @@ -3,7 +3,7 @@ package ed25519 /* This package contains a wrapper around crypto/ed22519 to make it comply with the crypto interfaces. -This package employs zip215 rules. We use https://github.com/hdevalence/ed25519consensus verification function. Ths is done in order to keep compatibility with Tendermints ed25519 implementation. +This package employs zip215 rules. We use https://github.com/hdevalence/ed25519consensus verification function. This is done in order to keep compatibility with Tendermints ed25519 implementation. - https://github.com/cometbft/cometbft/v2/blob/master/crypto/ed25519/ed25519.go#L155 This package works with correctly generated signatures. To read more about what this means see https://hdevalence.ca/blog/2020-10-04-its-25519am diff --git a/simapp/app_config.go b/simapp/app_config.go index a447850504..65bbfdda4f 100644 --- a/simapp/app_config.go +++ b/simapp/app_config.go @@ -214,7 +214,7 @@ var ( Name: stakingtypes.ModuleName, Config: appconfig.WrapAny(&stakingmodulev1.Module{ // NOTE: specifying a prefix is only necessary when using bech32 addresses - // If not specfied, the auth Bech32Prefix appended with "valoper" and "valcons" is used by default + // If not specified, the auth Bech32Prefix appended with "valoper" and "valcons" is used by default Bech32PrefixValidator: "cosmosvaloper", Bech32PrefixConsensus: "cosmosvalcons", }), diff --git a/x/auth/ante/sigverify.go b/x/auth/ante/sigverify.go index ffcc8a8ee6..5ee73b7a05 100644 --- a/x/auth/ante/sigverify.go +++ b/x/auth/ante/sigverify.go @@ -483,7 +483,7 @@ func extractSignersBytes(tx sdk.Tx) ([][]byte, error) { // BaseApp.Commit() will set the check state based on the latest header. // // NOTE: Since CheckTx and DeliverTx state are managed separately, subsequent and -// sequential txs orginating from the same account cannot be handled correctly in +// sequential txs originating from the same account cannot be handled correctly in // a reliable way unless sequence numbers are managed and tracked manually by a // client. It is recommended to instead use multiple messages in a tx. type IncrementSequenceDecorator struct { diff --git a/x/bank/migrations/v1/types.go b/x/bank/migrations/v1/types.go index 851f7e317a..6658af910c 100644 --- a/x/bank/migrations/v1/types.go +++ b/x/bank/migrations/v1/types.go @@ -38,7 +38,7 @@ func DenomMetadataKey(denom string) []byte { } // AddressFromBalancesStore returns an account address from a balances prefix -// store. The key must not contain the perfix BalancesPrefix as the prefix store +// store. The key must not contain the prefix BalancesPrefix as the prefix store // iterator discards the actual prefix. func AddressFromBalancesStore(key []byte) sdk.AccAddress { kv.AssertKeyAtLeastLength(key, 1+v1auth.AddrLen) diff --git a/x/bank/types/restrictions_test.go b/x/bank/types/restrictions_test.go index 47cb047da9..4197b785ca 100644 --- a/x/bank/types/restrictions_test.go +++ b/x/bank/types/restrictions_test.go @@ -27,7 +27,7 @@ func NewMintingRestrictionTestHelper() *MintingRestrictionTestHelper { return &MintingRestrictionTestHelper{Calls: make([]*MintingRestrictionArgs, 0, 2)} } -// RecordCall makes note that the provided args were used as a funcion call. +// RecordCall makes note that the provided args were used as a function call. func (s *MintingRestrictionTestHelper) RecordCall(name string, coins sdk.Coins) { s.Calls = append(s.Calls, s.NewArgs(name, coins)) } @@ -411,7 +411,7 @@ func NewSendRestrictionTestHelper() *SendRestrictionTestHelper { return &SendRestrictionTestHelper{Calls: make([]*SendRestrictionArgs, 0, 2)} } -// RecordCall makes note that the provided args were used as a funcion call. +// RecordCall makes note that the provided args were used as a function call. func (s *SendRestrictionTestHelper) RecordCall(name string, fromAddr, toAddr sdk.AccAddress, coins sdk.Coins) { s.Calls = append(s.Calls, s.NewArgs(name, fromAddr, toAddr, coins)) } diff --git a/x/staking/types/historical_info.go b/x/staking/types/historical_info.go index ee6b312719..380831e9fa 100644 --- a/x/staking/types/historical_info.go +++ b/x/staking/types/historical_info.go @@ -28,7 +28,7 @@ func NewHistoricalInfo(header cmtproto.Header, valSet Validators, powerReduction } } -// MustUnmarshalHistoricalInfo wll unmarshal historical info and panic on error +// MustUnmarshalHistoricalInfo will unmarshal historical info and panic on error func MustUnmarshalHistoricalInfo(cdc codec.BinaryCodec, value []byte) HistoricalInfo { hi, err := UnmarshalHistoricalInfo(cdc, value) if err != nil { diff --git a/x/upgrade/internal/conv/doc.go b/x/upgrade/internal/conv/doc.go index 1c86f5c144..4b45d1ab53 100644 --- a/x/upgrade/internal/conv/doc.go +++ b/x/upgrade/internal/conv/doc.go @@ -1,2 +1,2 @@ -// Package conv provides internal functions for convertions and data manipulation +// Package conv provides internal functions for conversions and data manipulation package conv diff --git a/x/upgrade/plan/info.go b/x/upgrade/plan/info.go index 70c35c9da4..b79266048a 100644 --- a/x/upgrade/plan/info.go +++ b/x/upgrade/plan/info.go @@ -20,7 +20,7 @@ type Info struct { Binaries BinaryDownloadURLMap `json:"binaries"` } -// BinaryDownloadURLMap is a map of os/architecture stings to a URL where the binary can be downloaded. +// BinaryDownloadURLMap is a map of os/architecture strings to a URL where the binary can be downloaded. type BinaryDownloadURLMap map[string]string // ParseConfig is used to configure the parsing of a Plan.Info string.