diff --git a/test/chain-adapters/ZkSync_Adapter.ts b/test/chain-adapters/ZkSync_Adapter.ts index 8a3d19ab8..7bcf42c35 100644 --- a/test/chain-adapters/ZkSync_Adapter.ts +++ b/test/chain-adapters/ZkSync_Adapter.ts @@ -9,7 +9,6 @@ import { seedWallet, randomAddress, toWei, - createFake, } from "../../utils/utils"; import { hubPoolFixture, enableTokensForLP } from "../fixtures/HubPool.Fixture"; import { constructSingleChainTree } from "../MerkleLib.utils"; @@ -121,7 +120,7 @@ describe("ZkSync Chain Adapter", function () { await zkSyncAdapter.L2_GAS_LIMIT(), await zkSyncAdapter.L1_GAS_TO_L2_GAS_PER_PUB_DATA_LIMIT(), [], - await zkSyncAdapter.l2RefundAddress() + refundAddress.address ); expect(zkSync.requestL2Transaction).to.have.been.calledWithValue(l2TransactionBaseCost); }); @@ -140,7 +139,7 @@ describe("ZkSync Chain Adapter", function () { tokensSendToL2, await zkSyncAdapter.L2_GAS_LIMIT(), await zkSyncAdapter.L1_GAS_TO_L2_GAS_PER_PUB_DATA_LIMIT(), - await zkSyncAdapter.l2RefundAddress(), + refundAddress.address, ]; expect(zkSyncErc20Bridge.deposit).to.have.been.calledWith(...expectedErc20L1ToL2BridgeParams); expect(zkSyncErc20Bridge.deposit).to.have.been.calledWithValue(l2TransactionBaseCost); @@ -164,7 +163,7 @@ describe("ZkSync Chain Adapter", function () { await zkSyncAdapter.L2_GAS_LIMIT(), await zkSyncAdapter.L1_GAS_TO_L2_GAS_PER_PUB_DATA_LIMIT(), [], - await zkSyncAdapter.l2RefundAddress() + refundAddress.address ); expect(zkSync.requestL2Transaction).to.have.been.calledWithValue( l2TransactionBaseCost.add(leaves[0].netSendAmounts[0])