3
0
mirror of https://github.com/Qortal/altcoinj.git synced 2025-02-13 10:45:51 +00:00

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() wallet.allowSpendingUnconfirmedTransactions()
var listener = Java.extend(bcj.core.AbstractWalletEventListener); var listener = Java.extend(bcj.wallet.listeners.AbstractWalletEventListener);
wallet.addEventListener(new listener() { wallet.addEventListener(new listener() {
onCoinsReceived: function(wallet, tx, prevBalance, newBalance) { onCoinsReceived: function(wallet, tx, prevBalance, newBalance) {
print("Received money! " + newBalance.toFriendlyString()); print("Received money! " + newBalance.toFriendlyString());