From 84042ac60881aaeaddb682e5de3787a6178e4141 Mon Sep 17 00:00:00 2001 From: Evan Kaloudis Date: Tue, 17 Dec 2024 15:50:44 -0500 Subject: [PATCH] ZEUS-2604: CLNRest: Cannot create LN invoice with empty amount --- backends/CLNRest.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backends/CLNRest.ts b/backends/CLNRest.ts index 3ebbd3fed..b68732de2 100644 --- a/backends/CLNRest.ts +++ b/backends/CLNRest.ts @@ -238,7 +238,7 @@ export default class CLNRest { this.postRequest('/v1/invoice', { description: data.memo, label: 'zeus.' + Math.random() * 1000000, - amount_msat: Number(data.value) * 1000, + amount_msat: data.value != 0 ? Number(data.value) * 1000 : 'any', expiry: Number(data.expiry), exposeprivatechannels: true });