From 8670004d6daa7e8c299087d62f1451a3dec4f899 Mon Sep 17 00:00:00 2001 From: Danil Date: Tue, 30 Jul 2024 16:54:46 +0200 Subject: [PATCH] fix owner for stm Signed-off-by: Danil --- l1-contracts/deploy-scripts/DeployL1.s.sol | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/l1-contracts/deploy-scripts/DeployL1.s.sol b/l1-contracts/deploy-scripts/DeployL1.s.sol index 31213904d..cc47bb424 100644 --- a/l1-contracts/deploy-scripts/DeployL1.s.sol +++ b/l1-contracts/deploy-scripts/DeployL1.s.sol @@ -447,7 +447,7 @@ contract DeployL1Script is Script { }); StateTransitionManagerInitializeData memory diamondInitData = StateTransitionManagerInitializeData({ - owner: config.ownerAddress, + owner: msg.sender, validatorTimelock: addresses.validatorTimelock, chainCreationParams: chainCreationParams, protocolVersion: config.contracts.latestProtocolVersion @@ -587,8 +587,10 @@ contract DeployL1Script is Script { L1SharedBridge sharedBridge = L1SharedBridge(addresses.bridges.sharedBridgeProxy); sharedBridge.transferOwnership(addresses.governance); - vm.stopBroadcast(); + StateTransitionManager stm = StateTransitionManager(addresses.stateTransition.stateTransitionProxy); + stm.transferOwnership(addresses.governance); + vm.stopBroadcast(); console.log("Owners updated"); }