handle application uris in invoices
This commit is contained in:
parent
2ee780ec7a
commit
3465eb7aba
@ -301,6 +301,10 @@ export default {
|
|||||||
|
|
||||||
async function createWithdrawal (parent, { invoice, maxFee }, { me, models, lnd }) {
|
async function createWithdrawal (parent, { invoice, maxFee }, { me, models, lnd }) {
|
||||||
await ssValidate(withdrawlSchema, { invoice, maxFee })
|
await ssValidate(withdrawlSchema, { invoice, maxFee })
|
||||||
|
|
||||||
|
// remove 'lightning:' prefix if present
|
||||||
|
invoice = invoice.replace(/^lightning:/, '')
|
||||||
|
|
||||||
// decode invoice to get amount
|
// decode invoice to get amount
|
||||||
let decoded
|
let decoded
|
||||||
try {
|
try {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user