Merge PR #6285: Registered upgrade module tx commands

This commit is contained in:
Riccardo Montagnin 2020-05-27 15:51:00 +02:00 committed by GitHub
parent 7cd0caba7a
commit 053b38cca2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 2 deletions

View File

@ -65,12 +65,15 @@ func (AppModuleBasic) GetQueryCmd(cdc *codec.Codec) *cobra.Command {
} }
// GetTxCmd returns the transaction commands for this module // GetTxCmd returns the transaction commands for this module
func (AppModuleBasic) GetTxCmd(_ context.CLIContext) *cobra.Command { func (AppModuleBasic) GetTxCmd(ctx context.CLIContext) *cobra.Command {
txCmd := &cobra.Command{ txCmd := &cobra.Command{
Use: "upgrade", Use: "upgrade",
Short: "Upgrade transaction subcommands", Short: "Upgrade transaction subcommands",
} }
txCmd.AddCommand(flags.PostCommands()...) txCmd.AddCommand(flags.PostCommands(
cli.NewCmdSubmitUpgradeProposal(ctx),
cli.NewCmdSubmitCancelUpgradeProposal(ctx),
)...)
return txCmd return txCmd
} }