decode invoice
This commit is contained in:
parent
80c2874bbb
commit
3e2cea2b86
1 changed files with 3 additions and 1 deletions
|
|
@ -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)
|
||||
)
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue