Skip to content

Commit

Permalink
fix: text output format of block-results cmd cli (backport #17183) (#…
Browse files Browse the repository at this point in the history
…17219)

Co-authored-by: zakir <[email protected]>
  • Loading branch information
mergify[bot] and zakir-code authored Jul 31, 2023
1 parent fac64cd commit 515042b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions server/cmt_cmds.go
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@ $ %s query block --%s=%s <hash>
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]",
Expand Down Expand Up @@ -298,7 +298,7 @@ func QueryBlockResultsCmd() *cobra.Command {
return err
}

return clientCtx.PrintString(string(blockResStr) + "\n")
return clientCtx.PrintRaw(blockResStr)
},
}

Expand Down

0 comments on commit 515042b

Please sign in to comment.