From 286e9bfbefabe215da11b27ca7e41f72c28bedbb Mon Sep 17 00:00:00 2001 From: SaReN Date: Wed, 4 Nov 2020 15:28:11 +0530 Subject: [PATCH] Remove duplicate tx commands for auth (#7788) * remove duplicate commands * add changelog Co-authored-by: Alessio Treglia --- CHANGELOG.md | 1 + x/auth/client/cli/tx.go | 26 -------------------------- x/auth/module.go | 2 +- 3 files changed, 2 insertions(+), 27 deletions(-) delete mode 100644 x/auth/client/cli/tx.go diff --git a/CHANGELOG.md b/CHANGELOG.md index 9ddba54527..01067c692c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -41,6 +41,7 @@ Ref: https://keepachangelog.com/en/1.0.0/ ### Client Breaking * (x/upgrade) [#7697](https://github.com/cosmos/cosmos-sdk/pull/7697) Rename flag name "--time" to "--upgrade-time", "--info" to "--upgrade-info", to keep it consistent with help message. +* (x/auth) [#7788](https://github.com/cosmos/cosmos-sdk/pull/7788) Remove `tx auth` subcommands, all auth subcommands exist as `tx ` ### API Breaking diff --git a/x/auth/client/cli/tx.go b/x/auth/client/cli/tx.go deleted file mode 100644 index 42b20ae8d5..0000000000 --- a/x/auth/client/cli/tx.go +++ /dev/null @@ -1,26 +0,0 @@ -package cli - -import ( - "github.com/spf13/cobra" - - "github.com/cosmos/cosmos-sdk/client" - "github.com/cosmos/cosmos-sdk/x/auth/types" -) - -// GetTxCmd returns the transaction commands for this module -func GetTxCmd() *cobra.Command { - txCmd := &cobra.Command{ - Use: types.ModuleName, - Short: "Auth transaction subcommands", - DisableFlagParsing: true, - SuggestionsMinimumDistance: 2, - RunE: client.ValidateCmd, - } - txCmd.AddCommand( - GetMultiSignCommand(), - GetSignCommand(), - GetValidateSignaturesCommand(), - GetSignBatchCommand(), - ) - return txCmd -} diff --git a/x/auth/module.go b/x/auth/module.go index 098dd774ee..0c6b1fa832 100644 --- a/x/auth/module.go +++ b/x/auth/module.go @@ -72,7 +72,7 @@ func (AppModuleBasic) RegisterGRPCGatewayRoutes(clientCtx client.Context, mux *r // GetTxCmd returns the root tx command for the auth module. func (AppModuleBasic) GetTxCmd() *cobra.Command { - return cli.GetTxCmd() + return nil } // GetQueryCmd returns the root query command for the auth module.