docs: fix multiple typos (#25031)
Co-authored-by: Alex | Interchain Labs <alex@interchainlabs.io>
This commit is contained in:
parent
354c6fb862
commit
f69755571c
@ -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{} {
|
||||
|
||||
@ -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)
|
||||
}
|
||||
|
||||
|
||||
@ -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 {
|
||||
|
||||
@ -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.
|
||||
|
||||
@ -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))},
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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},
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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)
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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(),
|
||||
|
||||
@ -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())
|
||||
|
||||
Loading…
Reference in New Issue
Block a user