diff options
Diffstat (limited to 'lib/utils.js')
| -rw-r--r-- | lib/utils.js | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/utils.js b/lib/utils.js index 036ccd6d..2941bf9d 100644 --- a/lib/utils.js +++ b/lib/utils.js @@ -162,8 +162,9 @@ export const derivePayRequest = async ({ amount, memo, tip }) => { if (config.lna.clightning) { if (!memo) memo = "coinos"; - return (await ln.invoice(value ? `${value}sat` : "any", new Date(), memo, 360)) - .bolt11; + return ( + await ln.invoice(value ? `${value}sat` : "any", new Date(), memo, 360) + ).bolt11; } else { return ( await createInvoice({ |
