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:
parent
ea4a3ed67a
commit
6669d9032c
@ -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());
|
||||||
|
Loading…
x
Reference in New Issue
Block a user