@@ -17,7 +17,10 @@ import { smock } from "@defi-wonderland/smock";
1717
1818let hubPool : Contract , zkSyncAdapter : Contract , weth : Contract , dai : Contract , timer : Contract , mockSpoke : Contract ;
1919let l2Weth : string , l2Dai : string , mainnetWeth : FakeContract ;
20- let owner : SignerWithAddress , dataWorker : SignerWithAddress , liquidityProvider : SignerWithAddress ;
20+ let owner : SignerWithAddress ,
21+ dataWorker : SignerWithAddress ,
22+ liquidityProvider : SignerWithAddress ,
23+ refundAddress : SignerWithAddress ;
2124let zkSync : FakeContract , zkSyncErc20Bridge : FakeContract ;
2225
2326const zkSyncChainId = 324 ;
@@ -73,7 +76,7 @@ const l2TransactionBaseCost = toWei("0.0001");
7376
7477describe ( "ZkSync Chain Adapter" , function ( ) {
7578 beforeEach ( async function ( ) {
76- [ owner , dataWorker , liquidityProvider ] = await ethers . getSigners ( ) ;
79+ [ owner , dataWorker , liquidityProvider , refundAddress ] = await ethers . getSigners ( ) ;
7780 ( { weth, dai, l2Weth, l2Dai, hubPool, mockSpoke, timer } = await hubPoolFixture ( ) ) ;
7881 await seedWallet ( dataWorker , [ dai ] , weth , amountToLp ) ;
7982 await seedWallet ( liquidityProvider , [ dai ] , weth , amountToLp . mul ( 10 ) ) ;
@@ -93,7 +96,9 @@ describe("ZkSync Chain Adapter", function () {
9396 address : "0x57891966931Eb4Bb6FB81430E6cE0A03AAbDe063" ,
9497 } ) ;
9598
96- zkSyncAdapter = await ( await getContractFactory ( "ZkSync_Adapter" , owner ) ) . deploy ( weth . address ) ;
99+ zkSyncAdapter = await (
100+ await getContractFactory ( "ZkSync_Adapter" , owner )
101+ ) . deploy ( weth . address , refundAddress . address ) ;
97102
98103 // Seed the HubPool some funds so it can send L1->L2 messages.
99104 await hubPool . connect ( liquidityProvider ) . loadEthForL2Calls ( { value : toWei ( "100000" ) } ) ;
0 commit comments