From 6de39e19f3c468276667f973e6f217ba8c55973b Mon Sep 17 00:00:00 2001 From: Jack Zampolin Date: Mon, 28 Jan 2019 16:59:20 -0800 Subject: [PATCH] Merge PR #3419: Fix query distr slashes --- PENDING.md | 1 + x/distribution/client/cli/query.go | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/PENDING.md b/PENDING.md index a684ea8820..ad915ada61 100644 --- a/PENDING.md +++ b/PENDING.md @@ -48,6 +48,7 @@ BUG FIXES * Gaia CLI (`gaiacli`) - [\#3417](https://github.com/cosmos/cosmos-sdk/pull/3417) Fix `q slashing signing-info` panic by ensuring safety of user input and properly returning not found error + - [\#3419](https://github.com/cosmos/cosmos-sdk/pull/3419) Fix `q distr slashes` panic * Gaia diff --git a/x/distribution/client/cli/query.go b/x/distribution/client/cli/query.go index 09d4b458ac..09b372278f 100644 --- a/x/distribution/client/cli/query.go +++ b/x/distribution/client/cli/query.go @@ -143,7 +143,7 @@ func GetCmdQueryValidatorSlashes(queryRoute string, cdc *codec.Codec) *cobra.Com return err } - var slashes types.ValidatorSlashEvent + var slashes types.ValidatorSlashEvents cdc.MustUnmarshalJSON(res, &slashes) return cliCtx.PrintOutput(slashes) },