From 277f8a20fbea9b0f094523b3a3f71c9651d3b170 Mon Sep 17 00:00:00 2001 From: ekzyis Date: Thu, 21 Nov 2024 02:57:16 +0100 Subject: [PATCH] Fix lnaddr not returning payment request (#1626) --- wallets/lightning-address/server.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wallets/lightning-address/server.js b/wallets/lightning-address/server.js index d0da5f12..f7e51356 100644 --- a/wallets/lightning-address/server.js +++ b/wallets/lightning-address/server.js @@ -32,8 +32,8 @@ export const createInvoice = async ( const body = await res.json() if (body.status === 'ERROR') { - throw new Error(res.reason) + throw new Error(body.reason) } - return res.pr + return body.pr }