From 3e2cea2b86fa68b3bfef9e1cfe3a726a5c8a6f6b Mon Sep 17 00:00:00 2001 From: Daniel Lugo Date: Mon, 13 Jan 2020 19:19:25 -0400 Subject: [PATCH] decode invoice --- services/gunDB/contact-api/actions.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/services/gunDB/contact-api/actions.js b/services/gunDB/contact-api/actions.js index fe881211..eb052000 100644 --- a/services/gunDB/contact-api/actions.js +++ b/services/gunDB/contact-api/actions.js @@ -912,8 +912,10 @@ const sendPayment = async (to, amount, memo, gun, user, SEA) => { return Promise.resolve() } + const decInvoice = await SEA.decrypt(invoice, ourSecret) + return Promise.reject( - new Error('Lightning could not find a route to pay invoice: ' + invoice) + new Error('Lightning could not find a route to pay invoice: ' + decInvoice) ) }