diff --git a/packages/integration-tests/src/entities.ts b/packages/integration-tests/src/entities.ts index 764a8db17b..951c971ab3 100644 --- a/packages/integration-tests/src/entities.ts +++ b/packages/integration-tests/src/entities.ts @@ -79,3 +79,5 @@ export enum BlockExplorer { export enum CustomValue { txSumEth = "0.000009", } + +export const txSumEth: string = CustomValue.txSumEth; diff --git a/packages/integration-tests/src/playbook/scenarios/deposit/depositETH.ts b/packages/integration-tests/src/playbook/scenarios/deposit/depositETH.ts index 42097bda89..acfc39f427 100644 --- a/packages/integration-tests/src/playbook/scenarios/deposit/depositETH.ts +++ b/packages/integration-tests/src/playbook/scenarios/deposit/depositETH.ts @@ -2,10 +2,10 @@ import * as ethers from "ethers"; import * as zksync from "zksync-web3"; import { localConfig } from "../../../config"; -import { CustomValue, Logger } from "../../../entities"; +import { CustomValue, Logger, txSumEth } from "../../../entities"; import { Helper } from "../../../helper"; -export const depositEth = async function (sum = CustomValue.txSumEth.toString()) { +export const depositEth = async function (sum = txSumEth) { const helper = new Helper(); const syncProvider = new zksync.Provider(localConfig.L2Network); const ethProvider = ethers.getDefaultProvider(localConfig.L1Network); diff --git a/packages/integration-tests/src/playbook/scenarios/transfers/transferETH.ts b/packages/integration-tests/src/playbook/scenarios/transfers/transferETH.ts index 13f32d384b..5a62d73559 100644 --- a/packages/integration-tests/src/playbook/scenarios/transfers/transferETH.ts +++ b/packages/integration-tests/src/playbook/scenarios/transfers/transferETH.ts @@ -3,13 +3,10 @@ import { promises as fs } from "fs"; import * as zksync from "zksync-web3"; import { localConfig } from "../../../config"; -import { Buffer, CustomValue, Logger, Wallets } from "../../../entities"; +import { Buffer, CustomValue, Logger, txSumEth, Wallets } from "../../../entities"; import { Helper } from "../../../helper"; -export const transferEth = async function ( - sum = CustomValue.txSumEth.toString(), - address: string = Wallets.mainWalletPrivateKey -) { +export const transferEth = async function (sum = txSumEth, address: string = Wallets.mainWalletPrivateKey) { const helper = new Helper(); const syncProvider = new zksync.Provider(localConfig.L2Network); const ethProvider = ethers.getDefaultProvider(localConfig.L1Network); diff --git a/packages/integration-tests/src/playbook/scenarios/withdrawal/withdrawETH.ts b/packages/integration-tests/src/playbook/scenarios/withdrawal/withdrawETH.ts index 94707a22c8..74b960a963 100644 --- a/packages/integration-tests/src/playbook/scenarios/withdrawal/withdrawETH.ts +++ b/packages/integration-tests/src/playbook/scenarios/withdrawal/withdrawETH.ts @@ -3,10 +3,10 @@ import { promises as fs } from "fs"; import * as zksync from "zksync-web3"; import { localConfig } from "../../../config"; -import { Buffer, CustomValue, Logger } from "../../../entities"; +import { Buffer, CustomValue, Logger, txSumEth } from "../../../entities"; import { Helper } from "../../../helper"; -export const withdrawETH = async function (sum = CustomValue.txSumEth.toString()) { +export const withdrawETH = async function (sum = txSumEth) { const helper = new Helper(); const syncProvider = new zksync.Provider(localConfig.L2Network); const ethProvider = ethers.getDefaultProvider(localConfig.L1Network); diff --git a/packages/integration-tests/src/playbook/scenarios/withdrawal/withdrawETHtoOtherAddress.ts b/packages/integration-tests/src/playbook/scenarios/withdrawal/withdrawETHtoOtherAddress.ts index 197efd700f..4ee338a744 100644 --- a/packages/integration-tests/src/playbook/scenarios/withdrawal/withdrawETHtoOtherAddress.ts +++ b/packages/integration-tests/src/playbook/scenarios/withdrawal/withdrawETHtoOtherAddress.ts @@ -3,10 +3,10 @@ import { promises as fs } from "fs"; import * as zksync from "zksync-web3"; import { localConfig } from "../../../config"; -import { Buffer, CustomValue, Logger, Wallets } from "../../../entities"; +import { Buffer, CustomValue, Logger, txSumEth, Wallets } from "../../../entities"; import { Helper } from "../../../helper"; -export const withdrawETHtoOtherAddress = async function (sum = CustomValue.txSumEth) { +export const withdrawETHtoOtherAddress = async function (sum = txSumEth) { const helper = new Helper(); const syncProvider = new zksync.Provider(localConfig.L2Network); const ethProvider = ethers.getDefaultProvider(localConfig.L1Network);