Remove duplicate tx commands for auth (#7788)
* remove duplicate commands * add changelog Co-authored-by: Alessio Treglia <alessio@tendermint.com>
This commit is contained in:
parent
83baa02f62
commit
286e9bfbef
|
@ -41,6 +41,7 @@ Ref: https://keepachangelog.com/en/1.0.0/
|
||||||
### Client Breaking
|
### 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/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 <subcommand>`
|
||||||
|
|
||||||
### API Breaking
|
### API Breaking
|
||||||
|
|
||||||
|
|
|
@ -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
|
|
||||||
}
|
|
|
@ -72,7 +72,7 @@ func (AppModuleBasic) RegisterGRPCGatewayRoutes(clientCtx client.Context, mux *r
|
||||||
|
|
||||||
// GetTxCmd returns the root tx command for the auth module.
|
// GetTxCmd returns the root tx command for the auth module.
|
||||||
func (AppModuleBasic) GetTxCmd() *cobra.Command {
|
func (AppModuleBasic) GetTxCmd() *cobra.Command {
|
||||||
return cli.GetTxCmd()
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
// GetQueryCmd returns the root query command for the auth module.
|
// GetQueryCmd returns the root query command for the auth module.
|
||||||
|
|
Loading…
Reference in New Issue