Skip to content

Commit

Permalink
Merge branch 'oz-hyper-improvements-audit' into vb-hyperchain-fix-oz-…
Browse files Browse the repository at this point in the history
…l-01
  • Loading branch information
vladbochok authored Jun 12, 2024
2 parents ca5f7e1 + c68a7e5 commit 9b3ef58
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions l1-contracts/contracts/bridge/L1SharedBridge.sol
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,10 @@ contract L1SharedBridge is IL1SharedBridge, ReentrancyGuard, Ownable2StepUpgrade
IBridgehub public immutable override BRIDGE_HUB;

/// @dev Era's chainID
uint256 immutable ERA_CHAIN_ID;
uint256 internal immutable ERA_CHAIN_ID;

/// @dev The address of zkSync Era diamond proxy contract.
address immutable ERA_DIAMOND_PROXY;
address internal immutable ERA_DIAMOND_PROXY;

/// @dev Stores the first batch number on the zkSync Era Diamond Proxy that was settled after Diamond proxy upgrade.
/// This variable is used to differentiate between pre-upgrade and post-upgrade Eth withdrawals. Withdrawals from batches older
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ contract ValidatorTimelock is IExecutor, Ownable2Step {
uint32 public executionDelay;

/// @dev Era's chainID
uint256 immutable ERA_CHAIN_ID;
uint256 internal immutable ERA_CHAIN_ID;

constructor(address _initialOwner, uint32 _executionDelay, uint256 _eraChainId) {
_transferOwnership(_initialOwner);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ contract MailboxFacet is ZkSyncHyperchainBase, IMailbox {
string public constant override getName = "MailboxFacet";

/// @dev Era's chainID
uint256 immutable ERA_CHAIN_ID;
uint256 internal immutable ERA_CHAIN_ID;

constructor(uint256 _eraChainId) {
ERA_CHAIN_ID = _eraChainId;
Expand Down
2 changes: 1 addition & 1 deletion l2-contracts/contracts/bridge/L2SharedBridge.sol
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ contract L2SharedBridge is IL2SharedBridge, Initializable {

/// @dev Contract is expected to be used as proxy implementation.
/// @dev Disable the initialization to prevent Parity hack.
uint256 immutable ERA_CHAIN_ID;
uint256 internal immutable ERA_CHAIN_ID;

constructor(uint256 _eraChainId) {
ERA_CHAIN_ID = _eraChainId;
Expand Down

0 comments on commit 9b3ef58

Please sign in to comment.