mirror of
https://github.com/Such-Software/hash-wallet.git
synced 2026-10-17 05:41:29 +02:00
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:
co-authored by
Omar Hatem
parent
fd62cd5b52
commit
ef752c747e
@@ -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';
|
||||
|
||||
Reference in New Issue
Block a user