Cosmos-sdk: Missing x/upgrade tx CLI commands

Created on 24 Feb 2020  Â·  4Comments  Â·  Source: cosmos/cosmos-sdk

Summary of Bug

Although tx CLI commands for the x/upgrade module are defined, they seem to not be exposed through the module's GetTxCmd:

// GetTxCmd returns the transaction commands for this module
func (AppModuleBasic) GetTxCmd(cdc *codec.Codec) *cobra.Command {
    txCmd := &cobra.Command{
        Use:   "upgrade",
        Short: "Upgrade transaction subcommands",
    }
    txCmd.AddCommand(flags.PostCommands()...)
    return txCmd
}

Version

Git hash e3dc0fd4a61f7771198477ef9ea247deb37ef4c2.


For Admin Use

  • [ ] Not duplicate issue
  • [ ] Appropriate labels applied
  • [ ] Appropriate contributors tagged
  • [ ] Contributor assigned/self-assigned

Most helpful comment

There are no other direct TX commands which needs to be exposed from upgrade module. tx gov ... covers both the commands from upgrade module.

All 4 comments

@aaronc @anilCSE does the upgrade module have any direct TX command(s)? I presumed the only tx command was the proposal creation which is mounted under tx gov ....

There are no other direct TX commands which needs to be exposed from upgrade module. tx gov ... covers both the commands from upgrade module.

I only see deposit, vote and submit-proposal commands in tx gov.

What's the recommended way to send x/upgrade messages via CLI? Using the submit-proposal gov subcommand?

$ gaiacli tx gov submit-proposal --help

You'll see the following:

Available Commands:
  param-change         Submit a parameter change proposal
  community-pool-spend Submit a community pool spend proposal
  software-upgrade     Submit a software upgrade proposal
Was this page helpful?
0 / 5 - 0 ratings