From 87d2d34498ef41ffe0be71ae51ff5d06bc5364c9 Mon Sep 17 00:00:00 2001 From: Diego <105765223+0xfuturistic@users.noreply.github.com> Date: Fri, 10 May 2024 18:16:42 +0200 Subject: [PATCH] contracts-bedrock: remove dependencySet from initialize in SystemConfig --- packages/contracts-bedrock/src/L1/SystemConfig.sol | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/packages/contracts-bedrock/src/L1/SystemConfig.sol b/packages/contracts-bedrock/src/L1/SystemConfig.sol index 254eb54f5461..d390d07dd2b2 100644 --- a/packages/contracts-bedrock/src/L1/SystemConfig.sol +++ b/packages/contracts-bedrock/src/L1/SystemConfig.sol @@ -154,8 +154,7 @@ contract SystemConfig is OwnableUpgradeable, ISemver, IGasToken { optimismPortal: address(0), optimismMintableERC20Factory: address(0), gasPayingToken: address(0) - }), - _dependencySet: new uint256[](0) + }) }); } @@ -171,7 +170,6 @@ contract SystemConfig is OwnableUpgradeable, ISemver, IGasToken { /// @param _batchInbox Batch inbox address. An identifier for the op-node to find /// canonical data. /// @param _addresses Set of L1 contract addresses. These should be the proxies. - /// @param _dependencySet Initial interop dependency set. function initialize( address _owner, uint256 _overhead, @@ -181,8 +179,7 @@ contract SystemConfig is OwnableUpgradeable, ISemver, IGasToken { address _unsafeBlockSigner, ResourceMetering.ResourceConfig memory _config, address _batchInbox, - SystemConfig.Addresses memory _addresses, - uint256 _dependencySet + SystemConfig.Addresses memory _addresses ) public initializer @@ -209,10 +206,6 @@ contract SystemConfig is OwnableUpgradeable, ISemver, IGasToken { _setResourceConfig(_config); require(_gasLimit >= minimumGasLimit(), "SystemConfig: gas limit too low"); - - for (uint256 i = 0; i < _dependencySet; i++) { - _addDependency(i); - } } /// @notice Returns the minimum L2 gas limit that can be safely set for the system to