Disable sendAll on native EVM Currencies (#1753)
Some checks are pending
Cache Dependencies / test (push) Waiting to run

* fix: Issue with nownodes on older wallets

* fix: Disable sendAll on native evm currencies
This commit is contained in:
David Adegoke 2024-10-17 02:17:29 +01:00 committed by GitHub
parent 564f8e2c70
commit cd5a1277a7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -123,7 +123,17 @@ abstract class SendViewModelBase extends WalletChangeListenerViewModel with Stor
@computed
bool get isBatchSending => outputs.length > 1;
bool get shouldDisplaySendALL => walletType != WalletType.solana;
bool get shouldDisplaySendALL {
if (walletType == WalletType.solana) return false;
if (walletType == WalletType.ethereum && selectedCryptoCurrency == CryptoCurrency.eth)
return false;
if (walletType == WalletType.polygon && selectedCryptoCurrency == CryptoCurrency.matic)
return false;
return true;
}
@computed
String get pendingTransactionFiatAmount {