From f73ee16c1618a0e5515541e368d7235ee208773e Mon Sep 17 00:00:00 2001 From: Jason Date: Thu, 4 Jan 2024 14:52:31 +0200 Subject: [PATCH] fix: watch outputs index check --- lib/src/lightning-manager.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/src/lightning-manager.ts b/lib/src/lightning-manager.ts index 9a7f0411..eff471b6 100644 --- a/lib/src/lightning-manager.ts +++ b/lib/src/lightning-manager.ts @@ -804,6 +804,10 @@ class LightningManager { return; } + if (!transactionData?.vout[index]) { + return; + } + const txs = await this.getScriptPubKeyHistory( transactionData?.vout[index].hex, );