Skip to content

Commit c8e4ea2

Browse files
committed
Update ZkSync_SpokePool.ts
1 parent 9dc3a95 commit c8e4ea2

File tree

1 file changed

+14
-6
lines changed

1 file changed

+14
-6
lines changed

test/evm/hardhat/chain-specific-spokepools/ZkSync_SpokePool.ts

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ describe("ZkSync Spoke Pool", function () {
119119
let _constructorArgs = [...constructorArgs];
120120
expect(_constructorArgs[1]).to.equal(usdc.address);
121121
expect(_constructorArgs[2]).to.equal(zkUSDCBridge.address);
122-
expect(_constructorArgs[3]).to.equal(cctpTokenMessenger);
122+
expect(_constructorArgs[4]).to.equal(cctpTokenMessenger);
123123

124124
// Verify successful deployment.
125125
let implementation = hre.upgrades.deployImplementation(await getContractFactory("ZkSync_SpokePool", owner), {
@@ -132,7 +132,7 @@ describe("ZkSync Spoke Pool", function () {
132132
// Configure cctp
133133
_constructorArgs = [...constructorArgs];
134134
_constructorArgs[2] = ZERO_ADDRESS;
135-
_constructorArgs[3] = randomAddress();
135+
_constructorArgs[4] = randomAddress();
136136
implementation = hre.upgrades.deployImplementation(await getContractFactory("ZkSync_SpokePool", owner), {
137137
kind: "uups",
138138
unsafeAllow: ["delegatecall"],
@@ -142,7 +142,7 @@ describe("ZkSync Spoke Pool", function () {
142142

143143
// Configure bridged USDC
144144
_constructorArgs = [...constructorArgs];
145-
_constructorArgs[3] = ZERO_ADDRESS;
145+
_constructorArgs[4] = ZERO_ADDRESS;
146146
implementation = hre.upgrades.deployImplementation(await getContractFactory("ZkSync_SpokePool", owner), {
147147
kind: "uups",
148148
unsafeAllow: ["delegatecall"],
@@ -153,7 +153,7 @@ describe("ZkSync Spoke Pool", function () {
153153
// Configure none (misconfigured)
154154
_constructorArgs = [...constructorArgs];
155155
_constructorArgs[2] = ZERO_ADDRESS;
156-
_constructorArgs[3] = ZERO_ADDRESS;
156+
_constructorArgs[4] = ZERO_ADDRESS;
157157
implementation = hre.upgrades.deployImplementation(await getContractFactory("ZkSync_SpokePool", owner), {
158158
kind: "uups",
159159
unsafeAllow: ["delegatecall"],
@@ -164,7 +164,7 @@ describe("ZkSync Spoke Pool", function () {
164164
// Configure both (misconfigured)
165165
_constructorArgs = [...constructorArgs];
166166
_constructorArgs[2] = zkUSDCBridge.address;
167-
_constructorArgs[3] = randomAddress();
167+
_constructorArgs[4] = randomAddress();
168168
implementation = hre.upgrades.deployImplementation(await getContractFactory("ZkSync_SpokePool", owner), {
169169
kind: "uups",
170170
unsafeAllow: ["delegatecall"],
@@ -197,7 +197,15 @@ describe("ZkSync Spoke Pool", function () {
197197
it("Bridge tokens to hub pool correctly calls the Standard L2 Bridge for zkSync Bridged USDC.e", async function () {
198198
// Redeploy the SpokePool with usdc address -> 0x0
199199
const usdcAddress = ZERO_ADDRESS;
200-
const constructorArgs = [weth.address, usdcAddress, zkUSDCBridge.address, cctpTokenMessenger, 60 * 60, 9 * 60 * 60];
200+
const constructorArgs = [
201+
weth.address,
202+
usdcAddress,
203+
zkUSDCBridge.address,
204+
1,
205+
cctpTokenMessenger,
206+
60 * 60,
207+
9 * 60 * 60,
208+
];
201209
const implementation = await hre.upgrades.deployImplementation(
202210
await getContractFactory("ZkSync_SpokePool", owner),
203211
{ kind: "uups", unsafeAllow: ["delegatecall"], constructorArgs }

0 commit comments

Comments
 (0)