Skip to content

Commit af4c221

Browse files
authored
Merge branch 'master' into bez/adr-020-proto-client-encoding
2 parents c56915d + 1b51a04 commit af4c221

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

x/auth/client/cli/query.go

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import (
66

77
"github.com/spf13/cobra"
88
"github.com/spf13/viper"
9+
tmtypes "github.com/tendermint/tendermint/types"
910

1011
"github.com/cosmos/cosmos-sdk/client"
1112
"github.com/cosmos/cosmos-sdk/client/context"
@@ -16,8 +17,6 @@ import (
1617
"github.com/cosmos/cosmos-sdk/version"
1718
authclient "github.com/cosmos/cosmos-sdk/x/auth/client"
1819
"github.com/cosmos/cosmos-sdk/x/auth/types"
19-
20-
tmtypes "github.com/tendermint/tendermint/types"
2120
)
2221

2322
const (
@@ -37,18 +36,16 @@ func GetQueryCmd(cdc *codec.Codec) *cobra.Command {
3736
}
3837

3938
cmd.AddCommand(
40-
flags.GetCommands(
41-
GetAccountCmd(cdc),
42-
QueryParamsCmd(cdc),
43-
)...,
39+
GetAccountCmd(cdc),
40+
QueryParamsCmd(cdc),
4441
)
4542

4643
return cmd
4744
}
4845

4946
// QueryParamsCmd returns the command handler for evidence parameter querying.
5047
func QueryParamsCmd(cdc *codec.Codec) *cobra.Command {
51-
return &cobra.Command{
48+
cmd := &cobra.Command{
5249
Use: "params",
5350
Short: "Query the current auth parameters",
5451
Args: cobra.NoArgs,
@@ -73,6 +70,8 @@ $ <appcli> query auth params
7370
return cliCtx.PrintOutput(params)
7471
},
7572
}
73+
74+
return flags.GetCommands(cmd)[0]
7675
}
7776

7877
// GetAccountCmd returns a query account that will display the state of the

0 commit comments

Comments
 (0)