mirror of
https://github.com/Such-Software/hash-wallet.git
synced 2026-10-17 05:41:29 +02:00
fix: Add additional fees validation for native transaction (#2933)
This commit is contained in:
@@ -1004,6 +1004,10 @@ abstract class EVMChainWalletBase
|
||||
if (currencyBalance.balance < totalAmount) {
|
||||
throw EVMChainTransactionCreationException(transactionCurrency);
|
||||
}
|
||||
if (transactionCurrency is! Erc20Token &&
|
||||
totalAmount + estimatedFeesForTransaction > currencyBalance.balance) {
|
||||
throw EVMChainTransactionFeesException.fromCurrency(currency.title);
|
||||
}
|
||||
}
|
||||
|
||||
if (transactionCurrency is Erc20Token &&
|
||||
|
||||
Reference in New Issue
Block a user