From 69c5b07a68e05d62d8503dbde310b06965330447 Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Sun, 17 Nov 2024 07:27:51 +0000 Subject: back to regular pay --- lib/payments.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'lib') diff --git a/lib/payments.ts b/lib/payments.ts index 94591985..4a394469 100644 --- a/lib/payments.ts +++ b/lib/payments.ts @@ -453,8 +453,9 @@ export const sendLightning = async ({ l("paying lightning invoice", pr.substr(-8), total, amount, maxfee); - const r = await ln.renepay({ - invstring: pr.replace(/\s/g, "").toLowerCase(), + const r = await ln.pay({ + // invstring: pr.replace(/\s/g, "").toLowerCase(), + bolt11: pr.replace(/\s/g, "").toLowerCase(), amount_msat: amount_msat ? undefined : amount * 1000, maxfee: maxfee ? maxfee * 1000 : 0, }); -- cgit v1.2.3