Merge branch 'master' into bez/adr-020-proto-client-encoding

This commit is contained in:
Alexander Bezobchuk 2020-03-06 12:30:43 -05:00 committed by GitHub
commit af4c2211b0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 7 deletions

View File

@ -6,6 +6,7 @@ import (
"github.com/spf13/cobra" "github.com/spf13/cobra"
"github.com/spf13/viper" "github.com/spf13/viper"
tmtypes "github.com/tendermint/tendermint/types"
"github.com/cosmos/cosmos-sdk/client" "github.com/cosmos/cosmos-sdk/client"
"github.com/cosmos/cosmos-sdk/client/context" "github.com/cosmos/cosmos-sdk/client/context"
@ -16,8 +17,6 @@ import (
"github.com/cosmos/cosmos-sdk/version" "github.com/cosmos/cosmos-sdk/version"
authclient "github.com/cosmos/cosmos-sdk/x/auth/client" authclient "github.com/cosmos/cosmos-sdk/x/auth/client"
"github.com/cosmos/cosmos-sdk/x/auth/types" "github.com/cosmos/cosmos-sdk/x/auth/types"
tmtypes "github.com/tendermint/tendermint/types"
) )
const ( const (
@ -37,10 +36,8 @@ func GetQueryCmd(cdc *codec.Codec) *cobra.Command {
} }
cmd.AddCommand( cmd.AddCommand(
flags.GetCommands( GetAccountCmd(cdc),
GetAccountCmd(cdc), QueryParamsCmd(cdc),
QueryParamsCmd(cdc),
)...,
) )
return cmd return cmd
@ -48,7 +45,7 @@ func GetQueryCmd(cdc *codec.Codec) *cobra.Command {
// QueryParamsCmd returns the command handler for evidence parameter querying. // QueryParamsCmd returns the command handler for evidence parameter querying.
func QueryParamsCmd(cdc *codec.Codec) *cobra.Command { func QueryParamsCmd(cdc *codec.Codec) *cobra.Command {
return &cobra.Command{ cmd := &cobra.Command{
Use: "params", Use: "params",
Short: "Query the current auth parameters", Short: "Query the current auth parameters",
Args: cobra.NoArgs, Args: cobra.NoArgs,
@ -73,6 +70,8 @@ $ <appcli> query auth params
return cliCtx.PrintOutput(params) return cliCtx.PrintOutput(params)
}, },
} }
return flags.GetCommands(cmd)[0]
} }
// GetAccountCmd returns a query account that will display the state of the // GetAccountCmd returns a query account that will display the state of the