Skip to content

Commit

Permalink
Register tx cmd (#17)
Browse files Browse the repository at this point in the history
  • Loading branch information
agouin authored Sep 25, 2023
1 parent d5d054a commit bae97d6
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
9 changes: 6 additions & 3 deletions x/params/module.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,12 @@ import (
sdk "github.com/cosmos/cosmos-sdk/types"
"github.com/cosmos/cosmos-sdk/types/module"
simtypes "github.com/cosmos/cosmos-sdk/types/simulation"
"github.com/cosmos/cosmos-sdk/x/params/client/cli"
sdkparamscli "github.com/cosmos/cosmos-sdk/x/params/client/cli"
paramskeeper "github.com/cosmos/cosmos-sdk/x/params/keeper"
"github.com/cosmos/cosmos-sdk/x/params/simulation"
"github.com/cosmos/cosmos-sdk/x/params/types"
sdkproposal "github.com/cosmos/cosmos-sdk/x/params/types/proposal"
"github.com/strangelove-ventures/paramauthority/x/params/client/cli"
"github.com/strangelove-ventures/paramauthority/x/params/keeper"
"github.com/strangelove-ventures/paramauthority/x/params/types/proposal"
)
Expand Down Expand Up @@ -66,11 +67,13 @@ func (AppModuleBasic) RegisterGRPCGatewayRoutes(clientCtx client.Context, mux *r
}

// GetTxCmd returns no root tx command for the params module.
func (AppModuleBasic) GetTxCmd() *cobra.Command { return nil }
func (AppModuleBasic) GetTxCmd() *cobra.Command {
return cli.GetTxCmd()
}

// GetQueryCmd returns no root query command for the params module.
func (AppModuleBasic) GetQueryCmd() *cobra.Command {
return cli.NewQueryCmd()
return sdkparamscli.NewQueryCmd()
}

func (am AppModuleBasic) RegisterInterfaces(registry codectypes.InterfaceRegistry) {
Expand Down
3 changes: 2 additions & 1 deletion x/upgrade/module.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ import (
sdkupgradekeeper "github.com/cosmos/cosmos-sdk/x/upgrade/keeper"
sdkupgradetypes "github.com/cosmos/cosmos-sdk/x/upgrade/types"

"github.com/strangelove-ventures/paramauthority/x/upgrade/client/cli"
"github.com/strangelove-ventures/paramauthority/x/upgrade/keeper"
"github.com/strangelove-ventures/paramauthority/x/upgrade/types"
)
Expand Down Expand Up @@ -69,7 +70,7 @@ func (AppModuleBasic) GetQueryCmd() *cobra.Command {

// GetTxCmd returns the transaction commands for this module
func (AppModuleBasic) GetTxCmd() *cobra.Command {
return nil
return cli.GetTxCmd()
}

func (b AppModuleBasic) RegisterInterfaces(registry codectypes.InterfaceRegistry) {
Expand Down

0 comments on commit bae97d6

Please sign in to comment.