From 911f6d49c05a1e79d2a2a4b1577f27666c4f6c68 Mon Sep 17 00:00:00 2001 From: harryge00 Date: Sat, 10 Feb 2018 17:52:10 +0800 Subject: [PATCH] SendRequest example: Fix the print info. --- examples/src/main/java/org/bitcoinj/examples/SendRequest.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/src/main/java/org/bitcoinj/examples/SendRequest.java b/examples/src/main/java/org/bitcoinj/examples/SendRequest.java index 27c8ba7d5..389638346 100644 --- a/examples/src/main/java/org/bitcoinj/examples/SendRequest.java +++ b/examples/src/main/java/org/bitcoinj/examples/SendRequest.java @@ -40,7 +40,6 @@ public class SendRequest { kit.startAsync(); kit.awaitRunning(); - System.out.println("Send money to: " + kit.wallet().currentReceiveAddress().toString()); // How much coins do we want to send? // The Coin class represents a monetary Bitcoin value. @@ -50,6 +49,7 @@ public class SendRequest { // To which address you want to send the coins? // The Address class represents a Bitcoin address. Address to = Address.fromBase58(params, "mupBAFeT63hXfeeT4rnAUcpKHDkz1n4fdw"); + System.out.println("Send money to: " + to.toString()); // There are different ways to create and publish a SendRequest. This is probably the easiest one. // Have a look at the code of the SendRequest class to see what's happening and what other options you have: https://bitcoinj.github.io/javadoc/0.11/com/google/bitcoin/core/Wallet.SendRequest.html