Skip to content

Commit

Permalink
Jesus review II
Browse files Browse the repository at this point in the history
  • Loading branch information
ignasirv committed Feb 28, 2025
1 parent bab1d3a commit 72fe2e8
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ contract GlobalExitRootManagerL2SovereignChain is
function initialize(
address _globalExitRootUpdater,
address _globalExitRootRemover
) external virtual reinitializer(2) {
) external virtual initializer {
// set globalExitRootUpdater
globalExitRootUpdater = _globalExitRootUpdater;
// set globalExitRootRemover
Expand Down
4 changes: 0 additions & 4 deletions test/contractsv2/BridgeL2SovereignChainUpgradeAL.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -92,10 +92,6 @@ describe("BridgeL2SovereignChain Contract", () => {
}
)) as unknown as GlobalExitRootManagerL2SovereignChain;

// initialize GlobalExitRootManagerL2SovereignChain
await sovereignChainGlobalExitRootContract.initialize(
ethers.ZeroAddress, deployer.address
);
// cannot initialize bridgeV2 initializer from Sovereign bridge
await expect(
sovereignChainBridgeContract.initialize(
Expand Down
11 changes: 2 additions & 9 deletions upgrade/upgradeSovereign/upgradeSovereignGER.ts
Original file line number Diff line number Diff line change
Expand Up @@ -94,20 +94,13 @@ async function main() {
);
console.log("Copy the following constructor arguments on: upgrade/arguments.js \n", [bridgeAddress]);
}
// Get initialize values
const globalExitRootUpdater = await gerManagerL2SovereignChainContract.globalExitRootUpdater();
const globalExitRootRemover = await gerManagerL2SovereignChainContract.globalExitRootRemover();

// gerManagerL2SovereignChainImplementation is upgraded but not initialized
const timelockOperation = genTimelockOperation(
proxyAdmin.target,
0, // value
proxyAdmin.interface.encodeFunctionData("upgradeAndCall", [
proxyAdmin.interface.encodeFunctionData("upgrade", [
globalExitRootManagerL2SovereignChainAddress,
gerManagerL2SovereignChainImplementation,
gerManagerL2SovereignChainFactory.interface.encodeFunctionData("initialize", [
globalExitRootUpdater,
globalExitRootRemover,
]),
]), // data
ethers.ZeroHash, // predecessor
salt // salt
Expand Down

0 comments on commit 72fe2e8

Please sign in to comment.