fix: walletconnect fee refresh (#3153)

* fix: refresh EIP-1559 fees before sign for walletconnect transactions

* fix: add missing data to configure file

---------

Co-authored-by: Omar Hatem <omarh.ismail1@gmail.com>
This commit is contained in:
David Adegoke
2026-04-09 10:45:14 +02:00
committed by GitHub
co-authored by Omar Hatem
parent fd62cd5b52
commit ef752c747e
5 changed files with 209 additions and 80 deletions
+18
View File
@@ -1555,6 +1555,12 @@ abstract class EVM {
bool hasPriorityFee(int chainId);
Future<EvmWalletConnectFeeQuote?> getWCBufferedFeeQuote(
WalletBase wallet,
TransactionPriority priority,
);
Future<void> discoverAndAddWalletTokens(WalletBase wallet);
}
@@ -1577,6 +1583,18 @@ class ChainInfo {
@override
int get hashCode => chainId.hashCode;
}
class EvmWalletConnectFeeQuote {
const EvmWalletConnectFeeQuote({
required this.maxFeePerGasWei,
required this.maxPriorityFeePerGasWei,
this.latestBaseFeeWei,
});
final int maxFeePerGasWei;
final int maxPriorityFeePerGasWei;
final int? latestBaseFeeWei;
}
""";
const evmEmptyDefinition = 'EVM? evm;\n';