decode invoice

This commit is contained in:
Daniel Lugo 2020-01-13 19:19:25 -04:00
parent 80c2874bbb
commit 3e2cea2b86

View file

@ -912,8 +912,10 @@ const sendPayment = async (to, amount, memo, gun, user, SEA) => {
return Promise.resolve() return Promise.resolve()
} }
const decInvoice = await SEA.decrypt(invoice, ourSecret)
return Promise.reject( 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)
) )
} }