From 2e6154a9535583dba6f1589eaefc36fab70a58da Mon Sep 17 00:00:00 2001 From: AJ ONeal Date: Fri, 24 Jun 2022 23:06:04 -0600 Subject: [PATCH] fix: use DASH, not DUFF for QR amount --- bin/crowdnode.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bin/crowdnode.js b/bin/crowdnode.js index 47357e2..8b8ce39 100755 --- a/bin/crowdnode.js +++ b/bin/crowdnode.js @@ -331,9 +331,10 @@ async function initCrowdNode(insightBaseUrl) { * @param {Number} duffs - 1/100000000 of a DASH */ function showQr(addr, duffs = 0) { + let dashAmount = toDash(duffs); let dashUri = `dash://${addr}`; if (duffs) { - dashUri += `?amount=${duffs}`; + dashUri += `?amount=${dashAmount}`; } let dashQr = Qr.ascii(dashUri, { indent: 4 }); -- 2.25.1