REF: fix ldk dep

This commit is contained in:
Overtorment 2022-04-20 10:39:24 +01:00
parent f5e64c9944
commit 9fa12da78c
3 changed files with 5 additions and 5 deletions

View File

@ -564,7 +564,7 @@ export class LightningLdkWallet extends LightningCustodianWallet {
await wallet.fetchUtxo();
console.log(wallet.getBalance(), wallet.getUtxo());
console.log('creating transation...');
const { tx } = wallet.createTransaction(wallet.getUtxo(), [{ address }], 1, address, 0, false, 0);
const { tx } = wallet.createTransaction(wallet.getUtxo(), [{ address }], 2, address, 0, false, 0);
if (!tx) throw new Error('claimCoins: could not create transaction');
console.log('broadcasting...');
return await wallet.broadcastTx(tx.toHex());

6
package-lock.json generated
View File

@ -25249,8 +25249,8 @@
}
},
"node_modules/rn-ldk": {
"version": "0.7.5",
"resolved": "git+ssh://git@github.com/BlueWallet/rn-ldk.git#ff9e26d7fca0e11c8c7d274ef3417104cc7480d8",
"version": "0.8.0",
"resolved": "git+ssh://git@github.com/BlueWallet/rn-ldk.git#04ca53e3faf05c441bc0112db05c0f7b77a861c0",
"license": "MIT",
"peerDependencies": {
"react": "*",
@ -47986,7 +47986,7 @@
}
},
"rn-ldk": {
"version": "git+ssh://git@github.com/BlueWallet/rn-ldk.git#ff9e26d7fca0e11c8c7d274ef3417104cc7480d8",
"version": "git+ssh://git@github.com/BlueWallet/rn-ldk.git#04ca53e3faf05c441bc0112db05c0f7b77a861c0",
"from": "rn-ldk@github:BlueWallet/rn-ldk#v0.8.0",
"requires": {}
},

View File

@ -209,7 +209,7 @@ const LdkInfo = () => {
try {
const rez = await wallet.claimCoins(address);
if (rez) {
alert(loc._.sucess);
alert(loc._.success);
await refetchData();
}
} finally {