projects
/
crowdnode.js
/
.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix: use DASH, not DUFF for QR amount
[crowdnode.js/.git]
/
bin
/
crowdnode.js
diff --git
a/bin/crowdnode.js
b/bin/crowdnode.js
index 47357e2d264f2d769df89fef6b605f5b81b3dd69..8b8ce396ff0be8d4a1ec0bc843052c1bf42e75e4 100755
(executable)
--- 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) {
* @param {Number} duffs - 1/100000000 of a DASH
*/
function showQr(addr, duffs = 0) {
+ let dashAmount = toDash(duffs);
let dashUri = `dash://${addr}`;
if (duffs) {
let dashUri = `dash://${addr}`;
if (duffs) {
- dashUri += `?amount=${d
uffs
}`;
+ dashUri += `?amount=${d
ashAmount
}`;
}
let dashQr = Qr.ascii(dashUri, { indent: 4 });
}
let dashQr = Qr.ascii(dashUri, { indent: 4 });