From 1134f1760c82b6dcb2f5320272b02079461be4a4 Mon Sep 17 00:00:00 2001 From: Rene Vergara Date: Sat, 15 Jan 2022 07:58:56 -0600 Subject: [PATCH] Allow for memo amount in scan component --- src/app/scan/scan.component.html | 2 +- src/app/scan/scan.component.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/app/scan/scan.component.html b/src/app/scan/scan.component.html index fea942d..97e166b 100644 --- a/src/app/scan/scan.component.html +++ b/src/app/scan/scan.component.html @@ -1,5 +1,5 @@
-

Scan to log in!

+

Scan to connect your wallet

diff --git a/src/app/scan/scan.component.ts b/src/app/scan/scan.component.ts index 0774969..1667fa1 100644 --- a/src/app/scan/scan.component.ts +++ b/src/app/scan/scan.component.ts @@ -27,7 +27,7 @@ export class ScanComponent implements OnInit{ this.address = data.addr; this.total = data.totalZec; this.session = data.session; - this.codeString = `zcash:${this.address}?amount=${this.total.toFixed(6)}&memo=${URLSafeBase64.encode(Buffer.from('ZGO::'.concat(this.session)))}`; + this.codeString = `zcash:${this.address}?amount=${this.total.toFixed(8)}&memo=${URLSafeBase64.encode(Buffer.from('ZGO::'.concat(this.session)))}`; this.zcashUrl = this.sanitizer.bypassSecurityTrustUrl(this.codeString); }