Skip to content

Commit

Permalink
Show result from AppTx
Browse files Browse the repository at this point in the history
  • Loading branch information
ethanfrey committed Jan 31, 2017
1 parent 63612f8 commit 215c377
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion cmd/basecoin/commands/tx.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit 215c377

Please sign in to comment.