mirror of
https://github.com/Qortal/altcoinj.git
synced 2025-02-13 02:35:52 +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:
parent
ea4a3ed67a
commit
6669d9032c
@ -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());
|
||||
|
Loading…
x
Reference in New Issue
Block a user