From 9ebf9be53bb3629585a55cd524fb78936817d77a Mon Sep 17 00:00:00 2001 From: Danil Date: Fri, 13 Sep 2024 16:12:47 +0200 Subject: [PATCH] fix(deploy): Initilize chain using ChainAdmin (#807) Signed-off-by: Danil --- l1-contracts/deploy-scripts/DeployL2Contracts.sol | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/l1-contracts/deploy-scripts/DeployL2Contracts.sol b/l1-contracts/deploy-scripts/DeployL2Contracts.sol index dddd26b25..b361e221d 100644 --- a/l1-contracts/deploy-scripts/DeployL2Contracts.sol +++ b/l1-contracts/deploy-scripts/DeployL2Contracts.sol @@ -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 }); } }