@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.
- package/.turbo/turbo-build.log +1 -1
- package/CHANGELOG.md +17 -0
- package/lib/__tests__/unit/api/node/rpc.unit.test.js +28 -3
- package/lib/__tests__/unit/api/node/rpc.unit.test.js.map +1 -1
- package/lib/api/node/rpc.common.js +2 -2
- package/lib/api/node/rpc.common.js.map +1 -1
- package/lib/specs.js +1 -1
- package/lib/specs.js.map +1 -1
- package/lib-es/__tests__/unit/api/node/rpc.unit.test.js +28 -3
- package/lib-es/__tests__/unit/api/node/rpc.unit.test.js.map +1 -1
- package/lib-es/api/node/rpc.common.js +2 -2
- package/lib-es/api/node/rpc.common.js.map +1 -1
- package/lib-es/specs.js +1 -1
- package/lib-es/specs.js.map +1 -1
- package/package.json +5 -5
- package/src/__tests__/unit/api/node/rpc.unit.test.ts +35 -4
- package/src/__tests__/unit/editTransaction/__snapshots__/getFormattedFeeFields.test.ts.snap +854 -854
- package/src/api/node/rpc.common.ts +2 -2
- package/src/specs.ts +1 -1
|
@@ -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
|
|