From 12dcd267bd2d23439afcbd493fda6f9d77035c4a Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Wed, 8 Feb 2023 16:47:32 -0800 Subject: invoice requests --- routes/lnurl.js | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'routes/lnurl.js') diff --git a/routes/lnurl.js b/routes/lnurl.js index 5494a5b0..687dab6e 100644 --- a/routes/lnurl.js +++ b/routes/lnurl.js @@ -86,17 +86,12 @@ export default { ["text/identifier", `${username}@${host}`] ]); - let memo = crypto - .createHash("sha256") - .update(Buffer.from(metadata, "utf8")) - .digest("hex"); - ({ text: pr } = await generate({ invoice: { amount: Math.round(amount / 1000), type: types.lightning }, - memo, + memo: metadata, user })); -- cgit v1.2.3