Skip to content

Commit c3341ba

Browse files
authored
Ensure refund address is stored correctly (#329)
improve: Slightly more strict zkSync adapter test
1 parent 69fa759 commit c3341ba

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

test/chain-adapters/ZkSync_Adapter.ts

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ import {
99
seedWallet,
1010
randomAddress,
1111
toWei,
12-
createFake,
1312
} from "../../utils/utils";
1413
import { hubPoolFixture, enableTokensForLP } from "../fixtures/HubPool.Fixture";
1514
import { constructSingleChainTree } from "../MerkleLib.utils";
@@ -121,7 +120,7 @@ describe("ZkSync Chain Adapter", function () {
121120
await zkSyncAdapter.L2_GAS_LIMIT(),
122121
await zkSyncAdapter.L1_GAS_TO_L2_GAS_PER_PUB_DATA_LIMIT(),
123122
[],
124-
await zkSyncAdapter.l2RefundAddress()
123+
refundAddress.address
125124
);
126125
expect(zkSync.requestL2Transaction).to.have.been.calledWithValue(l2TransactionBaseCost);
127126
});
@@ -140,7 +139,7 @@ describe("ZkSync Chain Adapter", function () {
140139
tokensSendToL2,
141140
await zkSyncAdapter.L2_GAS_LIMIT(),
142141
await zkSyncAdapter.L1_GAS_TO_L2_GAS_PER_PUB_DATA_LIMIT(),
143-
await zkSyncAdapter.l2RefundAddress(),
142+
refundAddress.address,
144143
];
145144
expect(zkSyncErc20Bridge.deposit).to.have.been.calledWith(...expectedErc20L1ToL2BridgeParams);
146145
expect(zkSyncErc20Bridge.deposit).to.have.been.calledWithValue(l2TransactionBaseCost);
@@ -164,7 +163,7 @@ describe("ZkSync Chain Adapter", function () {
164163
await zkSyncAdapter.L2_GAS_LIMIT(),
165164
await zkSyncAdapter.L1_GAS_TO_L2_GAS_PER_PUB_DATA_LIMIT(),
166165
[],
167-
await zkSyncAdapter.l2RefundAddress()
166+
refundAddress.address
168167
);
169168
expect(zkSync.requestL2Transaction).to.have.been.calledWithValue(
170169
l2TransactionBaseCost.add(leaves[0].netSendAmounts[0])

0 commit comments

Comments
 (0)