diff options
Diffstat (limited to 'lib/invoices.js')
| -rw-r--r-- | lib/invoices.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/invoices.js b/lib/invoices.js index 23af1aa4..b5718e23 100644 --- a/lib/invoices.js +++ b/lib/invoices.js @@ -6,6 +6,7 @@ import { getUser, bip21, fail, SATS } from "$lib/utils"; import { types } from "$lib/payments"; import { v4 } from "uuid"; +import lq from "$lib/liquid"; import bc from "$lib/bitcoin"; import ln from "$lib/ln"; @@ -54,6 +55,9 @@ export let generate = async ({ invoice, user, sender, memo }) => { } else if (type === types.bitcoin) { hash = await bc.getNewAddress(); text = bip21(hash, invoice); + } else if (type === types.liquid) { + hash = await lq.getNewAddress(); + text = bip21(hash, invoice); } else if (type === types.internal) { hash = id; } else { |
