fix: Add additional fees validation for native transaction (#2933)
David Adegoke committed
Feb 20, 2026 at 15:38 UTC
7000600c266b6861608a67614f6ac96a31d086ea
1 file changed
+4
cw_evm/lib/evm_chain_wallet.dart
+4
@@ -1004,6 +1004,10 @@ abstract class EVMChainWalletBase
1004
if (currencyBalance.balance < totalAmount) {
1005
throw EVMChainTransactionCreationException(transactionCurrency);
1006
}
1007
+ if (transactionCurrency is! Erc20Token &&
1008
+ totalAmount + estimatedFeesForTransaction > currencyBalance.balance) {
1009
+ throw EVMChainTransactionFeesException.fromCurrency(currency.title);
1010
+ }
1011
}
1012
1013
if (transactionCurrency is Erc20Token &&