fix sending issue (#1840)

* fix sending issue

* Update pr_test_build_android.yml
This commit is contained in:
Omar Hatem
2024-11-29 23:15:55 +03:00
committed by GitHub
parent de970fcb80
commit bd38393acf
4 changed files with 7 additions and 16 deletions
-10
View File
@@ -534,16 +534,6 @@ abstract class SendViewModelBase extends WalletChangeListenerViewModel with Stor
throw Exception('Priority is null for wallet type: ${wallet.type}');
}
if (hasCoinControl) {
bool isCoinSelected = false;
for (var coin in unspentCoinsListViewModel.items) {
isCoinSelected = isCoinSelected || (coin.isSending && !coin.isFrozen);
}
if (!isCoinSelected) {
throw Exception("No coin selected in coin control, you need to select a coin in order to spend");
}
}
switch (wallet.type) {
case WalletType.bitcoin:
case WalletType.litecoin: