Merge PR #4536: Return account queries with height

This commit is contained in:
colin axner
2019-06-13 15:54:17 +02:00
committed by Alexander Bezobchuk
parent 8c89023e9f
commit 95f3d32250
20 changed files with 125 additions and 104 deletions
+3 -3
View File
@@ -45,7 +45,7 @@ func GetCmdQueryParams(cdc *codec.Codec) *cobra.Command {
cliCtx := context.NewCLIContext().WithCodec(cdc)
route := fmt.Sprintf("custom/%s/%s", types.QuerierRoute, types.QueryParameters)
res, err := cliCtx.QueryWithData(route, nil)
res, _, err := cliCtx.QueryWithData(route, nil)
if err != nil {
return err
}
@@ -71,7 +71,7 @@ func GetCmdQueryInflation(cdc *codec.Codec) *cobra.Command {
cliCtx := context.NewCLIContext().WithCodec(cdc)
route := fmt.Sprintf("custom/%s/%s", types.QuerierRoute, types.QueryInflation)
res, err := cliCtx.QueryWithData(route, nil)
res, _, err := cliCtx.QueryWithData(route, nil)
if err != nil {
return err
}
@@ -97,7 +97,7 @@ func GetCmdQueryAnnualProvisions(cdc *codec.Codec) *cobra.Command {
cliCtx := context.NewCLIContext().WithCodec(cdc)
route := fmt.Sprintf("custom/%s/%s", types.QuerierRoute, types.QueryAnnualProvisions)
res, err := cliCtx.QueryWithData(route, nil)
res, _, err := cliCtx.QueryWithData(route, nil)
if err != nil {
return err
}