docs: fix misspelled issues (#24985)
This commit is contained in:
parent
59470924c7
commit
82aca772d6
@ -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]",
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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 {
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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",
|
||||
}),
|
||||
|
||||
@ -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 {
|
||||
|
||||
@ -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)
|
||||
|
||||
@ -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))
|
||||
}
|
||||
|
||||
@ -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 {
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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.
|
||||
|
||||
Loading…
Reference in New Issue
Block a user