Fix TMSP tutorial outputs

This commit is contained in:
Jae Kwon
2016-12-06 03:57:09 -08:00
parent b3e5d0afa1
commit c5f008d60f
5 changed files with 14 additions and 13 deletions
+2 -2
View File
@@ -234,7 +234,7 @@ func cmdCheckTx(c *cli.Context) error {
// Get application Merkle root hash
func cmdCommit(c *cli.Context) error {
res := client.CommitSync()
printResponse(c, res, Fmt("%X", res.Data), false)
printResponse(c, res, Fmt("0x%X", res.Data), false)
return nil
}
@@ -264,7 +264,7 @@ func printResponse(c *cli.Context, res types.Result, s string, printCode bool) {
fmt.Printf("-> error: %s\n", res.Error)
}*/
if s != "" {
fmt.Printf("-> data: {%s}\n", s)
fmt.Printf("-> data: %s\n", s)
}
if res.Log != "" {
fmt.Printf("-> log: %s\n", res.Log)