diff options
| author | Adam Soltys <[email protected]> | 2024-09-08 20:57:06 -0700 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2024-09-08 20:57:06 -0700 |
| commit | 5c105c8f4738ab1ead3c5b92f465f899cf0a7446 (patch) | |
| tree | 9cea2d1b46cdab9869f742e3286c9fb0762f8948 /lib/lightning.ts | |
| parent | 92bd9085a576517e06dc000d1e1ff11d27bc34b4 (diff) | |
| download | coinos-server-5c105c8f4738ab1ead3c5b92f465f899cf0a7446.tar.gz coinos-server-5c105c8f4738ab1ead3c5b92f465f899cf0a7446.zip | |
refactor rpc helper, accounts endpoints
Diffstat (limited to 'lib/lightning.ts')
| -rw-r--r-- | lib/lightning.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/lightning.ts b/lib/lightning.ts index 2d44581d..f86b9a2d 100644 --- a/lib/lightning.ts +++ b/lib/lightning.ts @@ -44,7 +44,7 @@ export async function listenForLightning() { if (p) return warn("already processed", bolt11); - await credit(bolt11, received, invoice.memo, preimage, types.lightning); + await credit({ hash:bolt11, amount:received, memo:invoice.memo, ref:preimage, type:types.lightning}); } catch (e) { console.log(e); err("problem receiving lightning payment", e.message); |
