Skip to content

Commit

Permalink
fix(deploy): Initilize chain using ChainAdmin (#807)
Browse files Browse the repository at this point in the history
Signed-off-by: Danil <[email protected]>
  • Loading branch information
Deniallugo authored Sep 13, 2024
1 parent 3a1b5d4 commit 9ebf9be
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions l1-contracts/deploy-scripts/DeployL2Contracts.sol
Original file line number Diff line number Diff line change
Expand Up @@ -295,13 +295,11 @@ contract DeployL2Script is Script {
function initializeChain() internal {
L1SharedBridge bridge = L1SharedBridge(config.l1SharedBridgeProxy);

Utils.executeUpgrade({
_governor: bridge.owner(),
_salt: bytes32(0),
Utils.chainAdminMulticall({
_chainAdmin: bridge.admin(),
_target: config.l1SharedBridgeProxy,
_data: abi.encodeCall(bridge.initializeChainGovernance, (config.chainId, config.l2SharedBridgeProxy)),
_value: 0,
_delay: 0
_value: 0
});
}
}

0 comments on commit 9ebf9be

Please sign in to comment.