mirror of
https://github.com/Qortal/altcoinj.git
synced 2025-07-31 20:11:23 +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:
committed by
Andreas Schildbach
parent
d5df55adb2
commit
302306d223
@@ -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());
|
||||
|
Reference in New Issue
Block a user