From 515042bb2e49ccef0883db7b58db67f17b40ecb9 Mon Sep 17 00:00:00 2001 From: "mergify[bot]" <37929162+mergify[bot]@users.noreply.github.com> Date: Mon, 31 Jul 2023 13:12:14 +0000 Subject: [PATCH] fix: text output format of `block-results` cmd cli (backport #17183) (#17219) Co-authored-by: zakir <80246097+zakir-code@users.noreply.github.com> --- server/cmt_cmds.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/cmt_cmds.go b/server/cmt_cmds.go index 47a4e64e18f..1decc4c59fd 100644 --- a/server/cmt_cmds.go +++ b/server/cmt_cmds.go @@ -258,7 +258,7 @@ $ %s query block --%s=%s return cmd } -// QueryBlockResultCmd implements the default command for a BlockResults query. +// QueryBlockResultsCmd implements the default command for a BlockResults query. func QueryBlockResultsCmd() *cobra.Command { cmd := &cobra.Command{ Use: "block-results [height]", @@ -298,7 +298,7 @@ func QueryBlockResultsCmd() *cobra.Command { return err } - return clientCtx.PrintString(string(blockResStr) + "\n") + return clientCtx.PrintRaw(blockResStr) }, }