From 1e7ebf68e10b5264347228a08501f5badf145248 Mon Sep 17 00:00:00 2001 From: sahith-narahari Date: Tue, 3 Nov 2020 20:23:22 +0530 Subject: [PATCH 1/2] remove duplicate commands --- x/auth/client/cli/tx.go | 26 -------------------------- x/auth/module.go | 2 +- 2 files changed, 1 insertion(+), 27 deletions(-) delete mode 100644 x/auth/client/cli/tx.go diff --git a/x/auth/client/cli/tx.go b/x/auth/client/cli/tx.go deleted file mode 100644 index 42b20ae8d5f3..000000000000 --- 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 098dd774ee61..0c6b1fa832fa 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. From 0e660f137849a0c65ed6532080864fba76f860ca Mon Sep 17 00:00:00 2001 From: sahith-narahari Date: Wed, 4 Nov 2020 01:36:21 +0530 Subject: [PATCH 2/2] add changelog --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 9ddba545276b..01067c692c3f 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