Skip to content

Commit

Permalink
[1760]: Remove the calls to AddTxCommands and AddQueryCommands since …
Browse files Browse the repository at this point in the history
…that's beind done already now by the auto-cli stuff.
  • Loading branch information
SpicyLemon committed May 14, 2024
1 parent 43447a2 commit 1ce56eb
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions cmd/provenanced/cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -192,8 +192,8 @@ func initRootCmd(rootCmd *cobra.Command, encodingConfig params.EncodingConfig, b
// add keybase, auxiliary RPC, query, and tx child commands
rootCmd.AddCommand(
server.StatusCommand(),
queryCommand(basicManager),
txCommand(basicManager),
queryCommand(),
txCommand(),
keys.Commands(),
)

Expand All @@ -211,7 +211,7 @@ func addModuleInitFlags(startCmd *cobra.Command) {
crisis.AddModuleInitFlags(startCmd)
}

func queryCommand(basicManager module.BasicManager) *cobra.Command {
func queryCommand() *cobra.Command {
cmd := &cobra.Command{
Use: "query",
Aliases: []string{"q"},
Expand All @@ -231,13 +231,12 @@ func queryCommand(basicManager module.BasicManager) *cobra.Command {
server.QueryBlockResultsCmd(),
)

basicManager.AddQueryCommands(cmd)
cmd.PersistentFlags().String(flags.FlagChainID, "", "The network chain ID")

return cmd
}

func txCommand(basicManager module.BasicManager) *cobra.Command {
func txCommand() *cobra.Command {
cmd := &cobra.Command{
Use: "tx",
Short: "Transactions subcommands",
Expand All @@ -252,15 +251,12 @@ func txCommand(basicManager module.BasicManager) *cobra.Command {
authcmd.GetMultiSignCommand(),
authcmd.GetMultiSignBatchCmd(),
authcmd.GetValidateSignaturesCommand(),
flags.LineBreak,
authcmd.GetBroadcastCommand(),
authcmd.GetEncodeCommand(),
authcmd.GetDecodeCommand(),
GetCmdPioSimulateTx(),
flags.LineBreak,
)

basicManager.AddTxCommands(cmd)
cmd.PersistentFlags().String(flags.FlagChainID, "", "The network chain ID")

return cmd
Expand Down

0 comments on commit 1ce56eb

Please sign in to comment.