From 5c105c8f4738ab1ead3c5b92f465f899cf0a7446 Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Sun, 8 Sep 2024 20:57:06 -0700 Subject: refactor rpc helper, accounts endpoints --- lib/lightning.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/lightning.ts') 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); -- cgit v1.2.3