mirror of
https://github.com/Such-Software/hash-wallet.git
synced 2026-10-17 05:41:29 +02:00
Disable sendAll on native EVM Currencies (#1753)
* fix: Issue with nownodes on older wallets * fix: Disable sendAll on native evm currencies
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user