Skip to content

Commit

Permalink
examples/upvote: Do some cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
tchap committed Sep 6, 2016
1 parent 0fead91 commit 9e32c1d
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions examples/upvote/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -123,19 +123,11 @@ func run() (err error) {
}

// Broadcast.

raw, err := client.NetworkBroadcast.BroadcastTransactionSynchronousRaw(tx.Transaction)
resp, err := client.NetworkBroadcast.BroadcastTransactionSynchronous(tx.Transaction)
if err != nil {
return err
}
fmt.Println("RESPONSE:", string(*raw))

/*
if err := client.NetworkBroadcast.BroadcastTransaction(tx.Transaction); err != nil {
return err
}
fmt.Println("UPVOTED!")
*/
fmt.Printf("%+v\n", *resp)

// Success!
return nil
Expand Down

0 comments on commit 9e32c1d

Please sign in to comment.