diff --git a/packages/shared/src/lib/core/network/classes/base-evm-network.class.ts b/packages/shared/src/lib/core/network/classes/base-evm-network.class.ts index 296cf87364..9431b5ac61 100644 --- a/packages/shared/src/lib/core/network/classes/base-evm-network.class.ts +++ b/packages/shared/src/lib/core/network/classes/base-evm-network.class.ts @@ -11,7 +11,6 @@ import { IBlock, IEvmNetworkStatus, IEvmNetwork, IBaseEvmNetworkConfiguration } import { evmNetworkStatuses } from '../stores' import { CoinType } from '@iota/sdk/out/types' import { EvmNetworkId, Web3Provider } from '../types' -import { Converter } from '@core/utils' export class BaseEvmNetwork implements IEvmNetwork { public readonly provider: Web3Provider @@ -66,7 +65,7 @@ export class BaseEvmNetwork implements IEvmNetwork { async getGasPrice(): Promise { const gasPrice = await this.provider.eth.getGasPrice() - return Converter.decimalToHex(Number(gasPrice), true) // TODO Fix type + return BigInt(gasPrice) } async getLatestBlock(): Promise { diff --git a/packages/shared/src/lib/core/wallet/tests/getOutputParameters.test.ts b/packages/shared/src/lib/core/wallet/tests/getOutputParameters.test.ts index 6623304a5e..4d701d3538 100644 --- a/packages/shared/src/lib/core/wallet/tests/getOutputParameters.test.ts +++ b/packages/shared/src/lib/core/wallet/tests/getOutputParameters.test.ts @@ -96,10 +96,6 @@ jest.mock('../../network/stores/networks.store', () => ({ getIscChain: jest.fn((_) => destinationNetwork), })) -// jest.mock('../../layer-2/actions/getGasPriceForNetwork', () => ({ -// getGasPriceForNetwork: jest.fn((_) => 1_000_000_000_000n), -// })) - jest.mock('../../layer-2/actions/getGasFeeForLayer1ToLayer2Transaction', () => ({ getGasFeeForLayer1ToLayer2Transaction: jest.fn(({ type }) => FALLBACK_ESTIMATED_GAS[type]), }))