From 06308bb12edff8e51b189b57d9f5a147959d743a Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Fri, 17 Jan 2025 11:28:30 -0800 Subject: send zaps for internal payments --- lib/invoices.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'lib/invoices.ts') diff --git a/lib/invoices.ts b/lib/invoices.ts index d121353c..4710beb2 100644 --- a/lib/invoices.ts +++ b/lib/invoices.ts @@ -32,7 +32,6 @@ export const generate = async ({ invoice, user }) => { secret, } = invoice; - amount = parseInt(amount || 0); tip = parseInt(tip) || null; @@ -102,11 +101,11 @@ export const generate = async ({ invoice, user }) => { await s(`invoice:${r.offer_id}`, id); } else if (type === types.bitcoin) { - address_type ||= "bech32" + address_type ||= "bech32"; hash = await bc.getNewAddress({ address_type }); text = bip21(hash, invoice); } else if (type === types.liquid) { - address_type ||= "blech32" + address_type ||= "blech32"; hash = await lq.getNewAddress({ address_type }); text = bip21(hash, invoice); } else if (type === types.internal) { -- cgit v1.2.3