diff --git a/packages/shared/src/lib/core/layer-2/actions/getGasPriceFromProvider.ts b/packages/shared/src/lib/core/layer-2/actions/getGasPriceForNetwork.ts similarity index 100% rename from packages/shared/src/lib/core/layer-2/actions/getGasPriceFromProvider.ts rename to packages/shared/src/lib/core/layer-2/actions/getGasPriceForNetwork.ts diff --git a/packages/shared/src/lib/core/layer-2/actions/index.ts b/packages/shared/src/lib/core/layer-2/actions/index.ts index 53863b368b..675d3455ec 100644 --- a/packages/shared/src/lib/core/layer-2/actions/index.ts +++ b/packages/shared/src/lib/core/layer-2/actions/index.ts @@ -5,12 +5,12 @@ export * from './canAccountMakeEvmTransaction' export * from './estimateGasForLayer1ToLayer2Transaction' export * from './fetchSelectedAccountLayer2Balance' export * from './generateAndStoreEvmAddressForAccount' -export * from './getGasPriceFromProvider' -export * from './getNetworkIdFromAddress' export * from './getGasFeesForLayer1ToLayer2Transaction' +export * from './getGasPriceForNetwork' export * from './getIscpTransferSmartContractData' export * from './getLayer2MetadataForTransfer' export * from './getLayer2NetworkFromAddress' +export * from './getNetworkIdFromAddress' export * from './pollEvmChainGasPrices' export * from './pollLayer2Tokens' export * from './signEvmTransactionWithStronghold' diff --git a/packages/shared/src/lib/core/layer-2/actions/updateEvmChainGasPrice.ts b/packages/shared/src/lib/core/layer-2/actions/updateEvmChainGasPrice.ts index 5743a16728..2f569aa892 100644 --- a/packages/shared/src/lib/core/layer-2/actions/updateEvmChainGasPrice.ts +++ b/packages/shared/src/lib/core/layer-2/actions/updateEvmChainGasPrice.ts @@ -1,7 +1,7 @@ import { handleError } from '@core/error/handlers' import { NetworkId } from '@core/network/types' import { setEvmChainGasPrice } from '../stores' -import { getGasPriceForNetwork } from './getGasPriceFromProvider' +import { getGasPriceForNetwork } from './getGasPriceForNetwork' export async function updateEvmChainGasPrice(chainId: NetworkId): Promise { try { 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 5e9038ec85..e54fde7597 100644 --- a/packages/shared/src/lib/core/wallet/tests/getOutputParameters.test.ts +++ b/packages/shared/src/lib/core/wallet/tests/getOutputParameters.test.ts @@ -90,8 +90,8 @@ jest.mock('../../network/actions/getChainConfiguration', () => ({ getChainConfiguration: jest.fn((_) => destinationNetwork), })) -jest.mock('../../layer-2/actions/getGasPriceInWei', () => ({ - getGasPriceInWei: jest.fn((_) => 1_000_000_000_000n), +jest.mock('../../layer-2/actions/getGasPriceForNetwork', () => ({ + getGasPriceForNetwork: jest.fn((_) => 1_000_000_000_000n), })) jest.mock('../../layer-2/actions/estimateGasForLayer1ToLayer2Transaction', () => ({ @@ -234,7 +234,7 @@ describe('File: getOutputParameters.ts', () => { const output = await getOutputParameters(sendFlowParameters, senderAddress) const expectedOutput = { recipientAddress: destinationNetwork.aliasAddress, - amount: '1000026620', + amount: '1000000000', features: { metadata: '0x00000000025e4b3ca1e3f423fccf01010161200300010000070c000c30680e00000090000f0ea000060009000d300000000000808094ebdc03', @@ -266,7 +266,7 @@ describe('File: getOutputParameters.ts', () => { const expectedOutput = { recipientAddress: destinationNetwork.aliasAddress, - amount: '26785', + amount: '0', assets: { nativeTokens: [ { @@ -297,7 +297,7 @@ describe('File: getOutputParameters.ts', () => { const expectedOutput = { recipientAddress: destinationNetwork.aliasAddress, - amount: '27170', + amount: '0', assets: { nftId, },