From 4d37b89479662df339794a50837021855ee08fe9 Mon Sep 17 00:00:00 2001 From: Michael de Hoog Date: Tue, 7 Jan 2025 10:39:24 -1000 Subject: [PATCH] Add zero address checks to DeployChain constructor (#43) --- contracts/src/DeployChain.sol | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/contracts/src/DeployChain.sol b/contracts/src/DeployChain.sol index f3a48a1..f71b8e4 100644 --- a/contracts/src/DeployChain.sol +++ b/contracts/src/DeployChain.sol @@ -88,6 +88,16 @@ contract DeployChain is Ownable { address _superchainConfig, address _protocolVersions ) { + require(_proxyAdmin != address(0)); + require(_optimismPortal != address(0)); + require(_systemConfig != address(0)); + require(_l1StandardBridge != address(0)); + require(_l1ERC721Bridge != address(0)); + require(_optimismMintableERC20Factory != address(0)); + require(_l1CrossDomainMessenger != address(0)); + require(_l2OutputOracle != address(0)); + require(_superchainConfig != address(0)); + require(_protocolVersions != address(0)); proxyAdmin = _proxyAdmin; optimismPortal = _optimismPortal; systemConfig = _systemConfig;