X-Git-Url: https://git.josue.xyz/?p=crowdnode.js%2F.git;a=blobdiff_plain;f=bin%2Fcrowdnode.js;h=8b8ce396ff0be8d4a1ec0bc843052c1bf42e75e4;hp=47357e2d264f2d769df89fef6b605f5b81b3dd69;hb=2e6154a9535583dba6f1589eaefc36fab70a58da;hpb=6136ca48e6ede940273ddbc590befe94eb62c4ce 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 });