Skip to content

Commit

Permalink
Add zero address checks to DeployChain constructor
Browse files Browse the repository at this point in the history
  • Loading branch information
mdehoog committed Jan 3, 2025
1 parent e332af0 commit 0ad3386
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 @@ -87,6 +87,16 @@ contract DeployChain {
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 0ad3386

Please sign in to comment.