docs: fix misspelled issues (#24985)
This commit is contained in:
@@ -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]",
|
||||
|
||||
+1
-1
@@ -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
|
||||
|
||||
+1
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user