From a499871aac1747e5b998f05bf815bfb4618807ea Mon Sep 17 00:00:00 2001 From: Jmunoz Date: Thu, 25 Jan 2024 17:25:39 -0300 Subject: [PATCH] remove test context restrictions --- .../tests/ts-integration/src/context-owner.ts | 28 ++++++++----------- 1 file changed, 11 insertions(+), 17 deletions(-) diff --git a/core/tests/ts-integration/src/context-owner.ts b/core/tests/ts-integration/src/context-owner.ts index ac9a6a9e4741..b7dec6238f4f 100644 --- a/core/tests/ts-integration/src/context-owner.ts +++ b/core/tests/ts-integration/src/context-owner.ts @@ -241,7 +241,7 @@ export class TestContextOwner { const gasPrice = await scaledGasPrice(this.mainEthersWallet); // Deposit L2 tokens (if needed). Depositing ETH with current native implementation is not supported. - if (!l2ETHAmountToDeposit.isZero() && !this.env.nativeErc20Testing) { + if (!l2ETHAmountToDeposit.isZero()) { // Given that we've already sent a number of transactions, // we have to correctly send nonce. const depositHandle = this.mainSyncWallet @@ -341,23 +341,17 @@ export class TestContextOwner { this.reporter.startAction(`Distributing tokens on L2`); let l2startNonce = await this.mainSyncWallet.getTransactionCount(); - // All the promises we send in this function. - const l2TxPromises: Promise[] = []; - // ETH transfers. - if (!this.env.nativeErc20Testing) { - const ethPromises = await sendTransfers( - zksync.utils.ETH_ADDRESS, - this.mainSyncWallet, - wallets, - L2_ETH_PER_ACCOUNT, - l2startNonce, - undefined, - this.reporter - ); - l2startNonce += l2TxPromises.length; - l2TxPromises.push(...ethPromises); - } + const l2TxPromises = await sendTransfers( + zksync.utils.ETH_ADDRESS, + this.mainSyncWallet, + wallets, + L2_ETH_PER_ACCOUNT, + l2startNonce, + undefined, + this.reporter + ); + l2startNonce += l2TxPromises.length; // ERC20 transfers. const l2TokenAddress = await this.mainSyncWallet.l2TokenAddress(this.env.erc20Token.l1Address);