Fix the "TypeError: Java.extend needs at least one type argument" in the forwarding.js example (wrong package).

This commit is contained in:
Giuseppe Raveduto
2016-11-30 12:56:11 +01:00
committed by Andreas Schildbach
parent d5df55adb2
commit 302306d223

View File

@@ -28,7 +28,7 @@ print("QRcode: http://qrickit.com/api/qr?d=" + uri);
wallet.allowSpendingUnconfirmedTransactions()
var listener = Java.extend(bcj.core.AbstractWalletEventListener);
var listener = Java.extend(bcj.wallet.listeners.AbstractWalletEventListener);
wallet.addEventListener(new listener() {
onCoinsReceived: function(wallet, tx, prevBalance, newBalance) {
print("Received money! " + newBalance.toFriendlyString());