Skip to content

Commit

Permalink
Fix for use with fiatCurrency param
Browse files Browse the repository at this point in the history
  • Loading branch information
chill117 committed Feb 12, 2021
1 parent 3d8e24e commit 8afe8c2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions server/scripts/generateSignedLnurl.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);

0 comments on commit 8afe8c2

Please sign in to comment.