From 8afe8c242377a621c8bd8e1a6d1e05c20aff59c1 Mon Sep 17 00:00:00 2001 From: Charles Hill Date: Fri, 12 Feb 2021 12:39:28 +0100 Subject: [PATCH] Fix for use with fiatCurrency param --- server/scripts/generateSignedLnurl.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/server/scripts/generateSignedLnurl.js b/server/scripts/generateSignedLnurl.js index 954d1d6..2a4b13f 100644 --- a/server/scripts/generateSignedLnurl.js +++ b/server/scripts/generateSignedLnurl.js @@ -32,15 +32,15 @@ const options = { encode: false, shorten: false, }; -if (config.fiatCurrency) { - params.f = config.fiatCurrency; -} const tag = 'withdrawRequest'; let params = { minWithdrawable: amount, maxWithdrawable: amount, defaultDescription: '', }; +if (config.fiatCurrency) { + params.f = config.fiatCurrency; +} const signedUrl = lnurl.createSignedUrl(apiKey, tag, params, options); // Print to standard output, but without a newline. process.stdout.write(signedUrl);