From 1085aed20a72cc35a986c1e36baa2377ca91dcec Mon Sep 17 00:00:00 2001 From: ekzyis Date: Thu, 21 Nov 2024 02:49:29 +0100 Subject: [PATCH] Fix lnaddr not returning payment request --- 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 d0da5f127..f7e51356a 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 }