fix: text output format of block-results cmd cli (#17183)

Co-authored-by: Julien Robert <julien@rbrt.fr>
This commit is contained in:
zakir 2023-07-31 20:42:44 +08:00 committed by GitHub
parent 236fe4c21e
commit f47749b9f0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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]",
@ -298,7 +298,7 @@ func QueryBlockResultsCmd() *cobra.Command {
return err
}
return clientCtx.PrintString(string(blockResStr) + "\n")
return clientCtx.PrintRaw(blockResStr)
},
}