mirror of
https://github.com/Such-Software/hash-wallet.git
synced 2026-10-23 06:38:35 +02:00
Cw 1307 debug swap creation error (#2713)
* fix amount validator to include min and max values * add BitcoinVN workaround * fix Chainflip casting for decoded JSON --------- Co-authored-by: Serhii-Borodenko <17529954+Serhii-Borodenko@users.noreply.github.com>
This commit is contained in:
co-authored by
Serhii-Borodenko
parent
4cb6bb3686
commit
b6fa059e54
@@ -112,7 +112,7 @@ class AmountMinValidator extends Validator<String> {
|
||||
return false;
|
||||
}
|
||||
|
||||
return valueInDouble > minInDouble;
|
||||
return valueInDouble >= minInDouble;
|
||||
}
|
||||
|
||||
double? parseToDouble(String value) {
|
||||
@@ -146,7 +146,7 @@ class AmountMaxValidator extends Validator<String> {
|
||||
if (valueInDouble == null || maxInDouble == null) {
|
||||
return false;
|
||||
}
|
||||
return valueInDouble < maxInDouble;
|
||||
return valueInDouble <= maxInDouble;
|
||||
}
|
||||
|
||||
double? parseToDouble(String value) {
|
||||
|
||||
Reference in New Issue
Block a user