Skip to content

Commit

Permalink
comment upgrade
Browse files Browse the repository at this point in the history
  • Loading branch information
invocamanman committed Feb 26, 2024
1 parent c4b6cbb commit 36c0eb0
Showing 1 changed file with 18 additions and 12 deletions.
30 changes: 18 additions & 12 deletions test/contractsv2/PolygonRollupManager.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2669,18 +2669,24 @@ describe("Polygon Rollup Manager", () => {

expect(await newZkEVMContract.dataAvailabilityProtocol()).to.be.equal(PolygonDataCommitee.target);

// Finally check compatibility with current ROllups:
const PolygonCurrentValidium = await ethers.getContractFactory("PolygonValidiumEtrog");

await upgrades.validateUpgrade(PolygonValidiumStorageMigration, PolygonCurrentValidium, {
constructorArgs: [
polygonZkEVMGlobalExitRoot.target,
polTokenContract.target,
polygonZkEVMBridgeContract.target,
rollupManagerContract.target,
],
unsafeAllow: ["constructor", "state-variable-immutable"],
} as any);
// // Finally check compatibility with current ROllups:
// const PolygonCurrentValidium = await ethers.getContractFactory("PolygonValidiumEtrog");
// const PolygonCurrentValidiumContract = await PolygonCurrentValidium.deploy(
// polygonZkEVMGlobalExitRoot.target,
// polTokenContract.target,
// polygonZkEVMBridgeContract.target,
// rollupManagerContract.target
// );
// await PolygonCurrentValidiumContract.waitForDeployment();
// await upgrades.validateUpgrade(PolygonValidiumStorageMigration, PolygonCurrentValidium, {
// constructorArgs: [
// polygonZkEVMGlobalExitRoot.target,
// polTokenContract.target,
// polygonZkEVMBridgeContract.target,
// rollupManagerContract.target,
// ],
// unsafeAllow: ["constructor", "state-variable-immutable"],
// } as any);
});

it("should add existing rollup and test full flow", async () => {
Expand Down

0 comments on commit 36c0eb0

Please sign in to comment.