Allow for memo amount in scan component

This commit is contained in:
Rene Vergara 2022-01-15 07:58:56 -06:00
parent f6a41f3893
commit 1134f1760c
2 changed files with 2 additions and 2 deletions

View File

@ -1,5 +1,5 @@
<div align="center" mat-dialog-title>
<h4 class="text">Scan to log in!</h4>
<h4 class="text">Scan to connect your wallet</h4>
</div>
<mat-dialog-content>

View File

@ -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);
}