diff --git a/tools/cosmovisor/scanner.go b/tools/cosmovisor/scanner.go index 85caaeeef8..0c2f7865c9 100644 --- a/tools/cosmovisor/scanner.go +++ b/tools/cosmovisor/scanner.go @@ -86,7 +86,7 @@ func (fw *fileWatcher) IsStop() bool { } } -// MonitorUpdate pools the filesystem to check for new upgrade currentInfo. +// MonitorUpdate polls the filesystem to check for new upgrade currentInfo. // currentName is the name of currently running upgrade. The check is rejected if it finds // an upgrade with the same name. func (fw *fileWatcher) MonitorUpdate(currentUpgrade upgradetypes.Plan) <-chan struct{} { diff --git a/types/address_race_test.go b/types/address_race_test.go index 8e651a3be2..9f641e4bd4 100644 --- a/types/address_race_test.go +++ b/types/address_race_test.go @@ -40,11 +40,11 @@ func (s *addressTestSuite) TestAddressRace() { done := make(chan bool, workers) cancel := make(chan bool) - for i := byte(1); i <= 2; i++ { // workes which will loop in first 100 addresses + for i := byte(1); i <= 2; i++ { // workers which will loop in first 100 addresses go addressStringCaller(s.Require(), i, 100, cancel, done) } - for i := byte(1); i <= 2; i++ { // workes which will generate 1e6 new addresses + for i := byte(1); i <= 2; i++ { // workers which will generate 1e6 new addresses go addressStringCaller(s.Require(), i, 1000000, cancel, done) } diff --git a/types/collections.go b/types/collections.go index b79d748866..de2873fadb 100644 --- a/types/collections.go +++ b/types/collections.go @@ -263,7 +263,7 @@ var timeSize = len(FormatTimeBytes(time.Time{})) func (timeKeyCodec) Decode(buffer []byte) (int, time.Time, error) { if len(buffer) != timeSize { - return 0, time.Time{}, fmt.Errorf("invalid time buffer buffer size") + return 0, time.Time{}, fmt.Errorf("invalid time buffer size") } t, err := ParseTimeBytes(buffer) if err != nil { diff --git a/types/dec_coin.go b/types/dec_coin.go index 7a431b69c3..ba4d0cb629 100644 --- a/types/dec_coin.go +++ b/types/dec_coin.go @@ -645,7 +645,7 @@ func ParseDecCoin(coinStr string) (coin DecCoin, err error) { return NewDecCoinFromDec(denomStr, amount), nil } -// ParseDecCoins will parse out a list of decimal coins separated by commas. If the parsing is successuful, +// ParseDecCoins will parse out a list of decimal coins separated by commas. If the parsing is successful, // the provided coins will be sanitized by removing zero coins and sorting the coin set. Lastly // a validation of the coin set is executed. If the check passes, ParseDecCoins will return the sanitized coins. // Otherwise it will return an error. diff --git a/types/dec_coin_test.go b/types/dec_coin_test.go index b22f8cda73..1dfaae5f6f 100644 --- a/types/dec_coin_test.go +++ b/types/dec_coin_test.go @@ -268,7 +268,7 @@ func (s *decCoinTestSuite) TestSubDecCoins() { { sdk.DecCoins{sdk.NewDecCoin("mytoken", math.NewInt(10)), sdk.NewDecCoin("btc", math.NewInt(20)), sdk.NewDecCoin("eth", math.NewInt(30))}, false, - "unorted coins should panic", + "unsorted coins should panic", }, { sdk.DecCoins{sdk.DecCoin{Denom: "BTC", Amount: math.LegacyNewDec(10)}, sdk.NewDecCoin("eth", math.NewInt(15)), sdk.NewDecCoin("mytoken", math.NewInt(5))}, diff --git a/types/handler_test.go b/types/handler_test.go index 86022530d5..bbde172c07 100644 --- a/types/handler_test.go +++ b/types/handler_test.go @@ -35,7 +35,7 @@ func TestChainAnteDecorators(t *testing.T) { } func TestChainPostDecorators(t *testing.T) { - // test panic when passing an empty sclice of PostDecorators + // test panic when passing an empty slice of PostDecorators require.Nil(t, sdk.ChainPostDecorators([]sdk.PostDecorator{}...)) // Create empty context as well as transaction diff --git a/types/mapcoins_test.go b/types/mapcoins_test.go index d588089103..d24c0976c9 100644 --- a/types/mapcoins_test.go +++ b/types/mapcoins_test.go @@ -21,7 +21,7 @@ func (s *coinTestSuite) TestMapCoinsAdd() { {"empty list + set", s.emptyCoins, cA0M1, sdk.Coins{s.cm1}, "zero coins should be removed"}, {"empty list + set", s.emptyCoins, cA1M1, cA1M1, "zero + a_non_zero = a_non_zero"}, {"set + empty list", cA0M1, s.emptyCoins, sdk.Coins{s.cm1}, "zero coins should be removed"}, - {"set + empty list", cA1M1, s.emptyCoins, cA1M1, "a_non_zero + zero = a_non_zero"}, + {"set + empty list", cA1M1, s.emptyCoins, cA1M1, "a_non_zero + zero = a_non_zero"}, { "{1atom,1muon}+{1atom,1muon}", cA1M1, cA1M1, sdk.Coins{s.ca2, s.cm2}, diff --git a/types/tx_msg.go b/types/tx_msg.go index 965554bee0..c32c23b1bf 100644 --- a/types/tx_msg.go +++ b/types/tx_msg.go @@ -29,14 +29,14 @@ type ( GetSigners() []AccAddress } - // Fee defines an interface for an application application-defined concrete + // Fee defines an interface for an application-defined concrete // transaction type to be able to set and return the transaction fee. Fee interface { GetGas() uint64 GetAmount() Coins } - // Signature defines an interface for an application application-defined + // Signature defines an interface for an application-defined // concrete transaction type to be able to set and return transaction signatures. Signature interface { GetPubKey() cryptotypes.PubKey diff --git a/x/auth/ante/sigverify_benchmark_test.go b/x/auth/ante/sigverify_benchmark_test.go index e7c58c7c9c..ed877e20f8 100644 --- a/x/auth/ante/sigverify_benchmark_test.go +++ b/x/auth/ante/sigverify_benchmark_test.go @@ -10,7 +10,7 @@ import ( "github.com/cosmos/cosmos-sdk/crypto/keys/secp256r1" ) -// This benchmark is used to asses the ante.Secp256k1ToR1GasFactor value +// This benchmark is used to assess the ante.Secp256k1ToR1GasFactor value func BenchmarkSig(b *testing.B) { require := require.New(b) msg := cmtcrypto.CRandBytes(1000) diff --git a/x/auth/client/cli/tx_sign.go b/x/auth/client/cli/tx_sign.go index 91e93cff13..4cb23b3826 100644 --- a/x/auth/client/cli/tx_sign.go +++ b/x/auth/client/cli/tx_sign.go @@ -144,7 +144,7 @@ func makeSignBatchCmd() func(cmd *cobra.Command, args []string) error { // append messages msgs = append(msgs, unsignedStdTx.GetMsgs()...) } - // set the new appened msgs into builder + // set the new appended msgs into builder err := txBuilder.SetMsgs(msgs...) if err != nil { return err diff --git a/x/auth/client/cli/validate_sigs.go b/x/auth/client/cli/validate_sigs.go index f9c1fee0e1..a4de3722ef 100644 --- a/x/auth/client/cli/validate_sigs.go +++ b/x/auth/client/cli/validate_sigs.go @@ -28,7 +28,7 @@ signed it, and make sure that signatures are in the correct order. The command would check whether all required signers have signed the transactions, whether the signatures were collected in the right order, and if the signature is valid over the given transaction. If the --offline flag is also set, signature validation over the -transaction will be not be performed as that will require RPC communication with a full node. +transaction will not be performed as that will require RPC communication with a full node. `, PreRun: preSignCmd, RunE: makeValidateSignaturesCmd(), diff --git a/x/auth/keeper/account.go b/x/auth/keeper/account.go index 62b32099fd..fd6c0d0349 100644 --- a/x/auth/keeper/account.go +++ b/x/auth/keeper/account.go @@ -62,7 +62,7 @@ func (ak AccountKeeper) SetAccount(ctx context.Context, acc sdk.AccountI) { } } -// RemoveAccount removes an account for the account mapper store. +// RemoveAccount removes an account from the account mapper store. // NOTE: this will cause supply invariant violation if called func (ak AccountKeeper) RemoveAccount(ctx context.Context, acc sdk.AccountI) { err := ak.Accounts.Remove(ctx, acc.GetAddress())