mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2024-11-17 09:47:35 +00:00
CAKE-345 | fixed conditions in electrum_wallet.dart and monero_wallet.dart
This commit is contained in:
parent
30a32ab071
commit
3967cc8d40
2 changed files with 4 additions and 4 deletions
|
@ -186,8 +186,8 @@ abstract class ElectrumWalletBase extends WalletBase<ElectrumBalance,
|
||||||
var fee = 0;
|
var fee = 0;
|
||||||
|
|
||||||
if (hasMultiDestination) {
|
if (hasMultiDestination) {
|
||||||
if (outputs.any((item) => item.sendAll) ||
|
if (outputs.any((item) => item.sendAll
|
||||||
outputs.any((item) => item.formattedCryptoAmount <= 0)) {
|
|| item.formattedCryptoAmount <= 0)) {
|
||||||
throw BitcoinTransactionWrongBalanceException(currency);
|
throw BitcoinTransactionWrongBalanceException(currency);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -163,8 +163,8 @@ abstract class MoneroWalletBase extends WalletBase<MoneroBalance,
|
||||||
}
|
}
|
||||||
|
|
||||||
if (hasMultiDestination) {
|
if (hasMultiDestination) {
|
||||||
if (outputs.any((item) => item.sendAll) ||
|
if (outputs.any((item) => item.sendAll
|
||||||
outputs.any((item) => item.formattedCryptoAmount <= 0)) {
|
|| item.formattedCryptoAmount <= 0)) {
|
||||||
throw MoneroTransactionCreationException('Wrong balance. Not enough XMR on your balance.');
|
throw MoneroTransactionCreationException('Wrong balance. Not enough XMR on your balance.');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue