From 8c7fa95d44aabd38fadc3ef955d835ad3379ec6c Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Thu, 18 Sep 2025 14:42:13 -0700 Subject: sendinvoice support --- lib/payments.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/payments.ts') diff --git a/lib/payments.ts b/lib/payments.ts index 807c87fa..9b7c807b 100644 --- a/lib/payments.ts +++ b/lib/payments.ts @@ -185,7 +185,7 @@ export const credit = async ({ amount = parseInt(amount) || 0; let inv; - if (type === PaymentType.bolt12) { + if (type === PaymentType.bolt12 && !hash.startsWith("lni")) { const { invoices } = await ln.listinvoices({ invstring: hash }); const { local_offer_id } = invoices[0]; inv = await getInvoice(local_offer_id); -- cgit v1.2.3