Skip to content

Commit

Permalink
fix: Fix ZkSyncSpokePool unit test (#315)
Browse files Browse the repository at this point in the history
* Update ZkSync_Adapter.sol

* Update ZkSync_SpokePool.ts
  • Loading branch information
nicholaspai committed Jul 13, 2023
1 parent 5809a87 commit c0d2ee0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion contracts/chain-adapters/ZkSync_Adapter.sol
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ contract ZkSync_Adapter is AdapterInterface {
ZkBridgeLike public constant zkErc20Bridge = ZkBridgeLike(0x57891966931Eb4Bb6FB81430E6cE0A03AAbDe063);

// Set l1Weth at construction time to make testing easier. TODO: Think of some way to be able to hardcode this
// while making testing easy.
// while keeping unit tests easy to write with custom WETH that we can mint/transfer.
WETH9Interface public immutable l1Weth;

event ZkSyncMessageRelayed(bytes32 canonicalTxHash);
Expand Down
4 changes: 2 additions & 2 deletions test/chain-specific-spokepools/ZkSync_SpokePool.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ describe("ZkSync Spoke Pool", function () {
zkSyncSpokePool = await hre.upgrades.deployProxy(
await getContractFactory("ZkSync_SpokePool", owner),
[0, zkErc20Bridge.address, owner.address, hubPool.address, weth.address],
{ kind: "uups" }
{ kind: "uups", unsafeAllow: ["delegatecall"] }
);

await seedContract(zkSyncSpokePool, relayer, [dai], weth, amountHeldByPool);
Expand All @@ -82,7 +82,7 @@ describe("ZkSync Spoke Pool", function () {
// TODO: Could also use upgrades.prepareUpgrade but I'm unclear of differences
const implementation = await hre.upgrades.deployImplementation(
await getContractFactory("ZkSync_SpokePool", owner),
{ kind: "uups" }
{ kind: "uups", unsafeAllow: ["delegatecall"] }
);

// upgradeTo fails unless called by cross domain admin
Expand Down

0 comments on commit c0d2ee0

Please sign in to comment.