@ledgerhq/coin-evm 2.9.3 → 2.9.4-nightly.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -149,12 +149,12 @@ export const getGasEstimation: NodeApi["getGasEstimation"] = (account, transacti
149
149
  /**
150
150
  * Get an estimation of fees on the network
151
151
  */
152
- export const getFeeData: NodeApi["getFeeData"] = currency =>
152
+ export const getFeeData: NodeApi["getFeeData"] = (currency, transaction) =>
153
153
  withApi(currency, async api => {
154
154
  const block = await api.getBlock("latest");
155
155
  const currencySupports1559 = getEnv("EVM_FORCE_LEGACY_TRANSACTIONS")
156
156
  ? false
157
- : Boolean(block.baseFeePerGas);
157
+ : transaction.type === 2 && Boolean(block.baseFeePerGas);
158
158
 
159
159
  const feeData = await (async (): Promise<
160
160
  | {
package/src/specs.ts CHANGED
@@ -149,7 +149,7 @@ const testCoinBalance: MutationSpec<EvmTransaction>["test"] = ({
149
149
  // Klaytn is not providing the right gasPrice either at the moment
150
150
  // and their explorers are using the transaction gasPrice
151
151
  // instead of the effectiveGasPrice from the receipt
152
- const underValuedFeesCurrencies = ["optimism", "base", "base_sepolia"];
152
+ const underValuedFeesCurrencies = ["optimism", "base", "base_sepolia", "blast", "blast_sepolia"];
153
153
  const overValuedFeesCurrencies = ["arbitrum", "arbitrum_sepolia", "klaytn"];
154
154
  const currenciesWithFlakyBehaviour = [...underValuedFeesCurrencies, ...overValuedFeesCurrencies];
155
155