mirror of
https://github.com/Such-Software/hash-wallet.git
synced 2026-10-25 05:58:42 +01:00
CAKE-210 | added possibility to enter comma in amount field (qr_widget.dart); replaced comma by dot in the MoneroURI and BitcoinURI classes (wallet_address_list_view_model.dart)
This commit is contained in:
@@ -31,7 +31,7 @@ class MoneroURI extends PaymentURI {
|
||||
var base = 'monero:' + address;
|
||||
|
||||
if (amount?.isNotEmpty ?? false) {
|
||||
base += '?tx_amount=$amount';
|
||||
base += '?tx_amount=${amount.replaceAll(',', '.')}';
|
||||
}
|
||||
|
||||
return base;
|
||||
@@ -47,7 +47,7 @@ class BitcoinURI extends PaymentURI {
|
||||
var base = 'bitcoin:' + address;
|
||||
|
||||
if (amount?.isNotEmpty ?? false) {
|
||||
base += '?amount=$amount';
|
||||
base += '?amount=${amount.replaceAll(',', '.')}';
|
||||
}
|
||||
|
||||
return base;
|
||||
|
||||
Reference in New Issue
Block a user