File tree Expand file tree Collapse file tree 1 file changed +6
-7
lines changed
Expand file tree Collapse file tree 1 file changed +6
-7
lines changed Original file line number Diff line number Diff line change 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
2322const (
@@ -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.
5047func 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
You can’t perform that action at this time.
0 commit comments