From 2e35bd728350f6e07a07d5734bd9e7e0e40c69d0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcos=20Rodriguez=20V=C3=A9lez?= Date: Fri, 29 Oct 2021 21:01:15 -0400 Subject: [PATCH] OPS: Lint fix --- class/wallets/lightning-ldk-wallet.ts | 8 +++++--- screen/lnd/ldkOpenChannel.tsx | 4 ++-- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/class/wallets/lightning-ldk-wallet.ts b/class/wallets/lightning-ldk-wallet.ts index 06a425b71..81e7c2f34 100644 --- a/class/wallets/lightning-ldk-wallet.ts +++ b/class/wallets/lightning-ldk-wallet.ts @@ -268,7 +268,7 @@ export class LightningLdkWallet extends LightningCustodianWallet { this._execInBackground(this.reestablishChannels); if (this.timeToCheckBlockchain()) this._execInBackground(this.checkBlockchain); - } catch (error) { + } catch (error: any) { alert('LDK init error: ' + error.message); } } @@ -491,7 +491,9 @@ export class LightningLdkWallet extends LightningCustodianWallet { try { await this.reconnectPeersWithPendingChannels(); - } finally { + } catch (error: any) { + console.log('fetchTransactions failed'); + console.log(error.message); } await this.getUserInvoices(); // it internally updates paid user invoices @@ -673,7 +675,7 @@ export class LightningLdkWallet extends LightningCustodianWallet { (async () => { try { await func.call(that); - } catch (error) { + } catch (error: any) { alert('_execInBackground error:' + error.message); } })(); diff --git a/screen/lnd/ldkOpenChannel.tsx b/screen/lnd/ldkOpenChannel.tsx index f59466e1e..6a014a8d6 100644 --- a/screen/lnd/ldkOpenChannel.tsx +++ b/screen/lnd/ldkOpenChannel.tsx @@ -273,7 +273,7 @@ const LdkOpenChannel = (props: any) => { address={remoteHostWithPubkey} isLoading={isLoading} inputAccessoryViewID={(BlueDismissKeyboardInputAccessory as any).InputAccessoryViewID} - onChangeText={(text) => setParams({ remoteHostWithPubkey: text })} + onChangeText={text => setParams({ remoteHostWithPubkey: text })} onBarScanned={onBarScanned} launchedBy={name} /> @@ -282,7 +282,7 @@ const LdkOpenChannel = (props: any) => { { const nodes = LightningLdkWallet.getPredefinedNodes(); - if (nodes[newKey]) setParams({ remoteHostWithPubkey: nodes[newKey]}); + if (nodes[newKey]) setParams({ remoteHostWithPubkey: nodes[newKey] }); }} items={LightningLdkWallet.getPredefinedNodes()} isItemUnknown={!Object.values(LightningLdkWallet.getPredefinedNodes()).some(node => node === remoteHostWithPubkey)}