Skip to content

Commit

Permalink
added /// @Custom:oz-upgrades-unsafe-allow incorrect-initializer-order
Browse files Browse the repository at this point in the history
  • Loading branch information
kyzooghost committed Feb 7, 2025
1 parent 01970be commit dea360d
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ contract TestL1MessageService is L1MessageService, TestSetPauseTypeRoles {
address public originalSender;
bool private reentryDone;

/// @custom:oz-upgrades-unsafe-allow incorrect-initializer-order
function initialize(
uint256 _rateLimitPeriod,
uint256 _rateLimitAmount,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ contract TestL1MessageServiceMerkleProof is L1MessageService, TestSetPauseTypeRo
*/
error MessageAlreadyReceived(bytes32 messageHash);

/// @custom:oz-upgrades-unsafe-allow incorrect-initializer-order
function initialize(
uint256 _rateLimitPeriod,
uint256 _rateLimitAmount,
Expand Down
1 change: 1 addition & 0 deletions contracts/src/messaging/l2/L2MessageService.sol
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ contract L2MessageService is AccessControlUpgradeable, L2MessageServiceV1, L2Mes
* @param _pauseTypeRoles The list of pause type roles.
* @param _unpauseTypeRoles The list of unpause type roles.
*/
/// @custom:oz-upgrades-unsafe-allow incorrect-initializer-order
function initialize(
uint256 _rateLimitPeriod,
uint256 _rateLimitAmount,
Expand Down
1 change: 1 addition & 0 deletions contracts/src/rollup/LineaRollup.sol
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ contract LineaRollup is AccessControlUpgradeable, ZkEvmV2, L1MessageService, Per
* @dev Note: This is used for new testnets and local/CI testing, and will not replace existing proxy based contracts.
* @param _initializationData The initial data used for proof verification.
*/
/// @custom:oz-upgrades-unsafe-allow incorrect-initializer-order
function initialize(InitializationData calldata _initializationData) external initializer {
if (_initializationData.defaultVerifier == address(0)) {
revert ZeroAddressNotAllowed();
Expand Down

0 comments on commit dea360d

Please sign in to comment.