projects
/
crowdnode.js
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6136ca4
)
fix: use DASH, not DUFF for QR amount
origin/fix-qr-amount
author
AJ ONeal
<coolaj86@gmail.com>
Sat, 25 Jun 2022 05:06:04 +0000
(23:06 -0600)
committer
AJ ONeal
<coolaj86@gmail.com>
Sat, 25 Jun 2022 05:06:04 +0000
(23:06 -0600)
bin/crowdnode.js
patch
|
blob
|
history
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) {
+ let dashAmount = toDash(duffs);
let dashUri = `dash://${addr}`;
if (duffs) {
- dashUri += `?amount=${d
uffs
}`;
+ dashUri += `?amount=${d
ashAmount
}`;
}
let dashQr = Qr.ascii(dashUri, { indent: 4 });