fix: correct typos and remove duplicate code across client and baseapp packages (#24991)

Co-authored-by: Alex | Interchain Labs <alex@interchainlabs.io>
This commit is contained in:
bigbear 2025-07-25 21:10:21 +03:00 committed by GitHub
parent db3f09e679
commit 64bd1a134e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
7 changed files with 7 additions and 8 deletions

View File

@ -432,7 +432,6 @@ func setFailOnHandler(cfg client.TxConfig, tx signing.Tx, fail bool) signing.Tx
func wonkyMsg(t *testing.T, cfg client.TxConfig, tx signing.Tx) signing.Tx {
t.Helper()
t.Helper()
builder := cfg.NewTxBuilder()
builder.SetMemo(tx.GetMemo())

View File

@ -130,7 +130,7 @@ func AddTxFlagsToCmd(cmd *cobra.Command) {
f.String(FlagGasPrices, "", "Gas prices in decimal format to determine the transaction fee (e.g. 0.1uatom)")
f.String(FlagNode, "tcp://localhost:26657", "<host>:<port> to CometBFT rpc interface for this chain")
f.Bool(FlagUseLedger, false, "Use a connected Ledger device")
f.Float64(FlagGasAdjustment, DefaultGasAdjustment, "adjustment factor to be multiplied against the estimate returned by the tx simulation; if the gas limit is set manually this flag is ignored ")
f.Float64(FlagGasAdjustment, DefaultGasAdjustment, "adjustment factor to be multiplied against the estimate returned by the tx simulation; if the gas limit is set manually this flag is ignored")
f.StringP(FlagBroadcastMode, "b", BroadcastSync, "Transaction broadcasting mode (sync|async)")
f.Bool(FlagDryRun, false, "ignore the --gas flag and perform a simulation of a transaction, but don't broadcast it (when enabled, the local Keybase is not accessible)")
f.Bool(FlagGenerateOnly, false, "Build an unsigned transaction and write it to STDOUT (when enabled, the local Keybase only accessed when providing a key name)")

View File

@ -17,7 +17,7 @@ const (
mnemonicEntropySize = 256
)
// MnemonicKeyCommand computes the bip39 memonic for input entropy.
// MnemonicKeyCommand computes the bip39 mnemonic for input entropy.
func MnemonicKeyCommand() *cobra.Command {
cmd := &cobra.Command{
Use: "mnemonic",

View File

@ -242,10 +242,10 @@ func checkMultipleSigners(tx authsigning.Tx) error {
return nil
}
// Sign signs a given tx with a named key. The bytes signed over are canconical.
// Sign signs a given tx with a named key. The bytes signed over are canonical.
// 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 supported and will
// Signing a transaction with multiple 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 {

View File

@ -315,7 +315,7 @@ func TestSign(t *testing.T) {
/**** test double sign Direct mode
signing transaction with 2 or more DIRECT signers should fail in DIRECT mode ****/
{
"direct: should append a DIRECT signature with existing AMINO",
"direct: should append a DIRECT signature with existing AMINO",
// txb already has 1 AMINO signature
txfDirect, txb, from1, false,
[]cryptotypes.PubKey{pubKey2, pubKey1},

View File

@ -1,4 +1,4 @@
// Package flag defines functionality for automatically managing command
// line flags as well positional arguments that are based on protobuf message
// line flags as well as positional arguments that are based on protobuf message
// fields.
package flag

View File

@ -575,7 +575,7 @@ func TestBinaryFlag(t *testing.T) {
}
func TestAddressValidation(t *testing.T) {
t.Skip() // TODO(@julienrbrt) re-able with better keyring instiantiation
t.Skip() // TODO(@julienrbrt) re-able with better keyring instantiation
fixture := initFixture(t)