Clean up sendtx example

This commit is contained in:
Ethan Frey
2018-03-01 02:36:57 +00:00
committed by rigelrozanski
parent f481900b23
commit 67e896dcaf
2 changed files with 12 additions and 22 deletions
+1 -18
View File
@@ -64,24 +64,7 @@ func sendTx(cmd *cobra.Command, args []string) error {
result.DeliverTx.Log)
}
fmt.Printf("Result: %#v\n", result)
// // parse out the value
// acct := new(types.AppAccount)
// cdc := app.MakeTxCodec()
// err = cdc.UnmarshalBinary(resp.Value, acct)
// if err != nil {
// return err
// }
// // TODO: better
// // fmt.Printf("Account: %#v\n", acct)
// output, err := json.MarshalIndent(acct, "", " ")
// // output, err := json.MarshalIndent(acct.BaseAccount.Coins, "", " ")
// if err != nil {
// return err
// }
// fmt.Println(string(output))
fmt.Printf("Committed at block %d. Hash: %s\n", result.Height, result.Hash.String())
return nil
}