Skip to content

Commit

Permalink
contracts-bedrock: add L2ToL2CrossDomainMessenger to L2Genesis
Browse files Browse the repository at this point in the history
  • Loading branch information
0xfuturistic committed Mar 22, 2024
1 parent 74a2dc3 commit 97255d1
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion packages/contracts-bedrock/scripts/L2Genesis.s.sol
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,7 @@ contract L2Genesis is Script, Artifacts {
_setGovernanceToken();
_setL1Block();
_setCrossL2Inbox();
_setL2ToL2CrossDomainMessenger();
}

/// @notice This predeploy is following the saftey invariant #1.
Expand Down Expand Up @@ -331,6 +332,11 @@ contract L2Genesis is Script, Artifacts {
/// This contract has no initializer.
function _setCrossL2Inbox() internal {
_setImplementationCode(Predeploys.CROSS_L2_INBOX, "CrossL2Inbox");

/// @notice This predeploy is following the saftey invariant #1.
/// This contract has no initializer.
function _setL2ToL2CrossDomainMessenger() internal {
_setImplementationCode(Predeploys.L2_TO_L2_CROSS_DOMAIN_MESSENGER, "L2ToL2CrossDomainMessenger");
}

/// @dev Returns true if the address is not proxied.
Expand All @@ -348,7 +354,7 @@ contract L2Genesis is Script, Artifacts {
|| _addr == Predeploys.L1_BLOCK_NUMBER || _addr == Predeploys.LEGACY_MESSAGE_PASSER
|| _addr == Predeploys.PROXY_ADMIN || _addr == Predeploys.BASE_FEE_VAULT || _addr == Predeploys.L1_FEE_VAULT
|| _addr == Predeploys.GOVERNANCE_TOKEN || _addr == Predeploys.SCHEMA_REGISTRY || _addr == Predeploys.EAS
|| _addr == Predeploys.CROSS_L2_INBOX;
|| _addr == Predeploys.CROSS_L2_INBOX || _addr == Predeploys.L2_TO_L2_CROSS_DOMAIN_MESSENGER;
}

/// @dev Function to compute the expected address of the predeploy implementation
Expand Down

0 comments on commit 97255d1

Please sign in to comment.