mirror of
https://github.com/Such-Software/hash-wallet.git
synced 2026-10-17 05:41:29 +02:00
CW-243-Better-error-message-for-too-many-decimals (#818)
* update amoung validation * fix decimal validator * minor fix
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
import 'package:cake_wallet/view_model/send/output.dart';
|
||||
import 'package:cw_core/wallet_type.dart';
|
||||
import 'package:mobx/mobx.dart';
|
||||
import 'package:cake_wallet/entities/template.dart';
|
||||
import 'package:cake_wallet/store/templates/send_template_store.dart';
|
||||
@@ -26,7 +27,8 @@ abstract class SendTemplateViewModelBase with Store {
|
||||
|
||||
Output output;
|
||||
|
||||
Validator get amountValidator => AmountValidator(type: _wallet.type);
|
||||
Validator get amountValidator =>
|
||||
AmountValidator(currency: walletTypeToCryptoCurrency(_wallet.type));
|
||||
|
||||
Validator get addressValidator => AddressValidator(type: _wallet.currency);
|
||||
|
||||
|
||||
@@ -126,7 +126,8 @@ abstract class SendViewModelBase with Store {
|
||||
|
||||
CryptoCurrency get currency => _wallet.currency;
|
||||
|
||||
Validator get amountValidator => AmountValidator(type: _wallet.type);
|
||||
Validator get amountValidator =>
|
||||
AmountValidator(currency: walletTypeToCryptoCurrency(_wallet.type));
|
||||
|
||||
Validator get allAmountValidator => AllAmountValidator();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user