Skip to content

Commit

Permalink
remove unnecessary
Browse files Browse the repository at this point in the history
  • Loading branch information
facundomedica committed Feb 10, 2023
1 parent 336bb79 commit 681ddb2
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 13 deletions.
10 changes: 5 additions & 5 deletions client/cmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -281,11 +281,11 @@ func readTxCommandFlags(clientCtx Context, flagSet *pflag.FlagSet) (Context, err

clientCtx = clientCtx.WithFrom(from).WithFromAddress(fromAddr).WithFromName(fromName)

// // TODO Remove this once SIGN_MODE_TEXTUAL is released
// // ref: https://github.com/cosmos/cosmos-sdk/issues/11970
// if keyType == keyring.TypeLedger && clientCtx.SignModeStr == flags.SignModeTextual {
// return clientCtx, fmt.Errorf("SIGN_MODE_TEXTUAL is currently not supported, please follow https://github.com/cosmos/cosmos-sdk/issues/11970")
// }
// TODO Remove this once SIGN_MODE_TEXTUAL is released
// ref: https://github.com/cosmos/cosmos-sdk/issues/11970
if keyType == keyring.TypeLedger && clientCtx.SignModeStr == flags.SignModeTextual {
return clientCtx, fmt.Errorf("SIGN_MODE_TEXTUAL is currently not supported, please follow https://github.com/cosmos/cosmos-sdk/issues/11970")
}

// If the `from` signer account is a ledger key, we need to use
// SIGN_MODE_AMINO_JSON, because ledger doesn't support proto yet.
Expand Down
4 changes: 0 additions & 4 deletions simapp/app_v2.go
Original file line number Diff line number Diff line change
Expand Up @@ -70,10 +70,6 @@ import (
slashingkeeper "github.com/cosmos/cosmos-sdk/x/slashing/keeper"
"github.com/cosmos/cosmos-sdk/x/staking"
stakingkeeper "github.com/cosmos/cosmos-sdk/x/staking/keeper"

// Not needed after https://github.com/cosmos/cosmos-sdk/issues/14647
_ "cosmossdk.io/api/cosmos/bank/v1beta1"
_ "cosmossdk.io/api/cosmos/crypto/secp256k1"
)

var (
Expand Down
1 change: 0 additions & 1 deletion x/auth/tx/mode_handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ var DefaultSignModes = []signingtypes.SignMode{
signingtypes.SignMode_SIGN_MODE_DIRECT,
signingtypes.SignMode_SIGN_MODE_DIRECT_AUX,
signingtypes.SignMode_SIGN_MODE_LEGACY_AMINO_JSON,
signingtypes.SignMode_SIGN_MODE_TEXTUAL,
// We currently don't add SIGN_MODE_TEXTUAL as part of the default sign
// modes, as it's not released yet (including the Ledger app). However,
// textual's sign mode handler is already available in this package. If you
Expand Down
3 changes: 0 additions & 3 deletions x/auth/tx/textual.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,6 @@ func (h signModeTextualHandler) GetSignBytesWithContext(ctx context.Context, mod
return nil, fmt.Errorf("can only handle a protobuf Tx, got %T", tx)
}

// bodyBz := protoTx.getBodyBytes()
// authInfoBz := protoTx.getAuthInfoBytes()

pbAny, err := codectypes.NewAnyWithValue(data.PubKey)
if err != nil {
return nil, err
Expand Down

0 comments on commit 681ddb2

Please sign in to comment.