From 5537474f2369820f7d91a125545a749db0f3be4f Mon Sep 17 00:00:00 2001 From: Oleh Bairak Date: Tue, 12 Mar 2024 19:01:07 +0100 Subject: [PATCH] fix: new one --- packages/integration-tests/src/constants.ts | 6 ++++++ .../src/playbook/scenarios/deposit/depositETH.ts | 2 +- .../src/playbook/scenarios/transfers/transferETH.ts | 4 ++-- .../src/playbook/scenarios/withdrawal/withdrawETH.ts | 4 ++-- .../scenarios/withdrawal/withdrawETHtoOtherAddress.ts | 4 ++-- 5 files changed, 13 insertions(+), 7 deletions(-) diff --git a/packages/integration-tests/src/constants.ts b/packages/integration-tests/src/constants.ts index d2bc2dce6f..b23e13fdf3 100644 --- a/packages/integration-tests/src/constants.ts +++ b/packages/integration-tests/src/constants.ts @@ -87,3 +87,9 @@ export enum BlockExplorer { export enum Values { txSumETH = "0.000009", } + +/* +const txSumETH = "0.000009"; +export const Values = { + txSumETH: txSumETH, +};*/ diff --git a/packages/integration-tests/src/playbook/scenarios/deposit/depositETH.ts b/packages/integration-tests/src/playbook/scenarios/deposit/depositETH.ts index d19297b314..996be4168a 100644 --- a/packages/integration-tests/src/playbook/scenarios/deposit/depositETH.ts +++ b/packages/integration-tests/src/playbook/scenarios/deposit/depositETH.ts @@ -5,7 +5,7 @@ import { localConfig } from "../../../config"; import { Buffer, Logger, Path } from "../../../constants"; import { Helper } from "../../../helper"; -export const depositEth = async function (sum = "0.000009") { +export const depositEth = async function (Values.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 d6c6f1f437..b372bc20ff 100644 --- a/packages/integration-tests/src/playbook/scenarios/transfers/transferETH.ts +++ b/packages/integration-tests/src/playbook/scenarios/transfers/transferETH.ts @@ -2,10 +2,10 @@ import * as ethers from "ethers"; import * as zksync from "zksync-web3"; import { localConfig } from "../../../config"; -import { Buffer, Logger, Path, Wallets } from "../../../constants"; +import { Buffer, Logger, Path, Values, Wallets } from "../../../constants"; import { Helper } from "../../../helper"; -export const transferEth = async function (sum = "0.000009", address: string = Wallets.mainWalletPrivateKey) { +export const transferEth = async function (sum = Values.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 8355f7bc1e..b74d3af9de 100644 --- a/packages/integration-tests/src/playbook/scenarios/withdrawal/withdrawETH.ts +++ b/packages/integration-tests/src/playbook/scenarios/withdrawal/withdrawETH.ts @@ -2,10 +2,10 @@ import * as ethers from "ethers"; import * as zksync from "zksync-web3"; import { localConfig } from "../../../config"; -import { Buffer, Logger, Path } from "../../../constants"; +import { Buffer, Logger, Path, Values } from "../../../constants"; import { Helper } from "../../../helper"; -export const withdrawETH = async function (sum = "0.000009") { +export const withdrawETH = async function (sum = Values.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 e946974c44..1113632897 100644 --- a/packages/integration-tests/src/playbook/scenarios/withdrawal/withdrawETHtoOtherAddress.ts +++ b/packages/integration-tests/src/playbook/scenarios/withdrawal/withdrawETHtoOtherAddress.ts @@ -2,10 +2,10 @@ import * as ethers from "ethers"; import * as zksync from "zksync-web3"; import { localConfig } from "../../../config"; -import { Buffer, Logger, Path, Wallets } from "../../../constants"; +import { Buffer, Logger, Path, Values, Wallets } from "../../../constants"; import { Helper } from "../../../helper"; -export const withdrawETHtoOtherAddress = async function (sum = "0.000009") { +export const withdrawETHtoOtherAddress = async function (sum = Values.txSumETH) { const helper = new Helper(); const syncProvider = new zksync.Provider(localConfig.L2Network); const ethProvider = ethers.getDefaultProvider(localConfig.L1Network);