Skip to content

Commit

Permalink
Merge PR #6285: Registered upgrade module tx commands
Browse files Browse the repository at this point in the history
  • Loading branch information
RiccardoM authored May 27, 2020
1 parent 7cd0cab commit 053b38c
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions x/upgrade/module.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,12 +65,15 @@ func (AppModuleBasic) GetQueryCmd(cdc *codec.Codec) *cobra.Command {
}

// 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{
Use: "upgrade",
Short: "Upgrade transaction subcommands",
}
txCmd.AddCommand(flags.PostCommands()...)
txCmd.AddCommand(flags.PostCommands(
cli.NewCmdSubmitUpgradeProposal(ctx),
cli.NewCmdSubmitCancelUpgradeProposal(ctx),
)...)
return txCmd
}

Expand Down

0 comments on commit 053b38c

Please sign in to comment.