Skip to content

Commit

Permalink
fix: text output format of block-results cmd cli (#17183)
Browse files Browse the repository at this point in the history
Co-authored-by: Julien Robert <julien@rbrt.fr>
  • Loading branch information
zakir-code and julienrbrt committed Jul 31, 2023
1 parent 236fe4c commit f47749b
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 f47749b

Please sign in to comment.