From 018cc999398b69e7a40f498a929267fc9935ec34 Mon Sep 17 00:00:00 2001 From: Oleh Bairak Date: Thu, 29 Feb 2024 17:14:04 +0100 Subject: [PATCH] fix: new version --- packages/integration-tests/src/entities.ts | 2 ++ .../src/playbook/scenarios/deposit/depositETH.ts | 4 ++-- .../src/playbook/scenarios/transfers/transferETH.ts | 7 ++----- .../src/playbook/scenarios/withdrawal/withdrawETH.ts | 4 ++-- .../scenarios/withdrawal/withdrawETHtoOtherAddress.ts | 4 ++-- 5 files changed, 10 insertions(+), 11 deletions(-) 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);