From 215c377fae00a004a8edd3ee71a643ed0c3dc377 Mon Sep 17 00:00:00 2001 From: Ethan Frey Date: Tue, 31 Jan 2017 17:00:23 +0100 Subject: [PATCH] Show result from AppTx --- cmd/basecoin/commands/tx.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cmd/basecoin/commands/tx.go b/cmd/basecoin/commands/tx.go index 2e7d3028dc..e68c3754d1 100644 --- a/cmd/basecoin/commands/tx.go +++ b/cmd/basecoin/commands/tx.go @@ -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 }