Show result from AppTx

This commit is contained in:
Ethan Frey 2017-01-31 17:00:23 +01:00
parent 63612f8204
commit 215c377fae
1 changed files with 3 additions and 1 deletions

View File

@ -160,9 +160,11 @@ func AppTx(c *cli.Context, name string, data []byte) error {
fmt.Println("Signed AppTx:")
fmt.Println(string(wire.JSONBytes(tx)))
if _, err := broadcastTx(c, tx); err != nil {
res, err := broadcastTx(c, tx)
if err != nil {
return err
}
fmt.Printf("Response: %X\n", res)
return nil
}