diff options
| author | Adam Soltys <[email protected]> | 2024-05-02 14:06:44 -0700 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2024-05-02 14:06:44 -0700 |
| commit | 57fa1382102eda6bab845c020d1a6458e4f02122 (patch) | |
| tree | 78c2f30f0b6ec64b581b754bf2e415bc5b968e87 /lib | |
| parent | 1c184f2af7c6a11c779b64b936f45f3d4902c199 (diff) | |
| download | coinos-server-57fa1382102eda6bab845c020d1a6458e4f02122.tar.gz coinos-server-57fa1382102eda6bab845c020d1a6458e4f02122.zip | |
move memo field
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/invoices.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/invoices.js b/lib/invoices.js index de29e74b..55223674 100644 --- a/lib/invoices.js +++ b/lib/invoices.js @@ -1,3 +1,4 @@ +import crypto from "crypto"; import store from "$lib/store"; import { l } from "$lib/logging"; import { emit } from "$lib/sockets"; @@ -10,7 +11,7 @@ import lq from "$lib/liquid"; import bc from "$lib/bitcoin"; import ln from "$lib/ln"; -export let generate = async ({ invoice, user, sender, }) => { +export let generate = async ({ invoice, user, sender }) => { let { currency, expiry, @@ -28,7 +29,6 @@ export let generate = async ({ invoice, user, sender, }) => { secret, } = invoice; - amount = parseInt(amount || 0); tip = parseInt(tip) || null; |
