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 ea4a3ed67a
commit 6669d9032c

View File

@@ -44,7 +44,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());