Skip to content

Commit

Permalink
fix: Initializer check in DeployOPChain
Browse files Browse the repository at this point in the history
  • Loading branch information
maurelian committed Oct 30, 2024
1 parent 46fc57d commit c5eda67
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/contracts-bedrock/scripts/deploy/DeployOPChain.s.sol
Original file line number Diff line number Diff line change
Expand Up @@ -576,7 +576,7 @@ contract DeployOPChain is Script {
IL1StandardBridge bridge = _doo.l1StandardBridgeProxy();
IL1CrossDomainMessenger messenger = _doo.l1CrossDomainMessengerProxy();

DeployUtils.assertInitialized({ _contractAddress: address(bridge), _slot: 0, _offset: 0 });
DeployUtils.assertInitialized({ _contractAddress: address(bridge), _slot: 49, _offset: 0 });

require(address(bridge.MESSENGER()) == address(messenger), "L1SB-10");
require(address(bridge.messenger()) == address(messenger), "L1SB-20");
Expand All @@ -588,7 +588,7 @@ contract DeployOPChain is Script {
function assertValidOptimismMintableERC20Factory(DeployOPChainInput, DeployOPChainOutput _doo) internal {
IOptimismMintableERC20Factory factory = _doo.optimismMintableERC20FactoryProxy();

DeployUtils.assertInitialized({ _contractAddress: address(factory), _slot: 49, _offset: 0 });
DeployUtils.assertInitialized({ _contractAddress: address(factory), _slot: 51, _offset: 0 });

require(factory.BRIDGE() == address(_doo.l1StandardBridgeProxy()), "MERC20F-10");
require(factory.bridge() == address(_doo.l1StandardBridgeProxy()), "MERC20F-20");
Expand Down

0 comments on commit c5eda67

Please sign in to comment.