Skip to content

Commit

Permalink
Add zero address checks to DeployChain constructor (#43)
Browse files Browse the repository at this point in the history
  • Loading branch information
mdehoog authored Jan 7, 2025
1 parent 621d520 commit 4d37b89
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions contracts/src/DeployChain.sol
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 4d37b89

Please sign in to comment.