aboutsummaryrefslogtreecommitdiffstats
path: root/lib/lightning.ts
diff options
context:
space:
mode:
Diffstat (limited to 'lib/lightning.ts')
-rw-r--r--lib/lightning.ts2
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);