From 060ffb2736a7d74fc37234a09d64a384e6478159 Mon Sep 17 00:00:00 2001 From: Giulio Stramondo Date: Thu, 20 Nov 2025 17:11:33 +0100 Subject: [PATCH] Added missing flags to cli query gov commands min-deposit min-initial-deposit and constitution --- x/gov/client/cli/query.go | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/x/gov/client/cli/query.go b/x/gov/client/cli/query.go index d15e2958..a913de97 100644 --- a/x/gov/client/cli/query.go +++ b/x/gov/client/cli/query.go @@ -745,7 +745,7 @@ $ %s query gov proposer 1 } func GetCmdConstitution() *cobra.Command { - return &cobra.Command{ + cmd := &cobra.Command{ Use: "constitution", Short: "Get the constitution", Args: cobra.NoArgs, @@ -764,11 +764,13 @@ func GetCmdConstitution() *cobra.Command { return clientCtx.PrintProto(resp) }, } + flags.AddQueryFlagsToCmd(cmd) + return cmd } // GetCmdQueryMinDeposit implements the query min deposit command. func GetCmdQueryMinDeposit() *cobra.Command { - return &cobra.Command{ + cmd := &cobra.Command{ Use: "min-deposit", Args: cobra.ExactArgs(0), Short: "Query the minimum deposit currently needed for a proposal to enter voting period", @@ -796,11 +798,13 @@ $ %s query gov min-deposit return clientCtx.PrintProto(resp) }, } + flags.AddQueryFlagsToCmd(cmd) + return cmd } // GetCmdQueryMinInitialDeposit implements the query min initial deposit command. func GetCmdQueryMinInitialDeposit() *cobra.Command { - return &cobra.Command{ + cmd := &cobra.Command{ Use: "min-initial-deposit", Args: cobra.ExactArgs(0), Short: "Query the minimum initial deposit needed for a proposal to enter deposit period", @@ -828,4 +832,6 @@ $ %s query gov min-initial-deposit return clientCtx.PrintProto(resp) }, } + flags.AddQueryFlagsToCmd(cmd) + return cmd }