CAKE-345 | fixed conditions in electrum_wallet.dart and monero_wallet.dart
OleksandrSobol committed
Aug 13, 2021 at 15:06 UTC
3967cc8d400fa9e2817cbcae2ef093fd2da7dcd5
2 files changed
+4
-4
lib/bitcoin/electrum_wallet.dart
+2
-2
@@ -186,8 +186,8 @@ abstract class ElectrumWalletBase extends WalletBase<ElectrumBalance,
186
var fee = 0;
187
188
if (hasMultiDestination) {
189
- if (outputs.any((item) => item.sendAll) ||
190
- outputs.any((item) => item.formattedCryptoAmount <= 0)) {
189
+ if (outputs.any((item) => item.sendAll
190
+ || item.formattedCryptoAmount <= 0)) {
191
throw BitcoinTransactionWrongBalanceException(currency);
192
}
193
lib/monero/monero_wallet.dart
+2
-2
@@ -163,8 +163,8 @@ abstract class MoneroWalletBase extends WalletBase<MoneroBalance,
163
}
164
165
if (hasMultiDestination) {
166
- if (outputs.any((item) => item.sendAll) ||
167
- outputs.any((item) => item.formattedCryptoAmount <= 0)) {
166
+ if (outputs.any((item) => item.sendAll
167
+ || item.formattedCryptoAmount <= 0)) {
168
throw MoneroTransactionCreationException('Wrong balance. Not enough XMR on your balance.');
169
}
170