mirror of
https://github.com/Such-Software/hash-wallet.git
synced 2026-11-15 09:24:01 +01:00
CAKE-345 | fixed conditions in electrum_wallet.dart and monero_wallet.dart
This commit is contained in:
@@ -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.');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user