Commit 45afc876 authored by clabby's avatar clabby

Remove `CrossDomainMessenger.sol`'s `ReentrancyGuardUpgradeable` inheritance

parent 99ab58b2
...@@ -413,10 +413,8 @@ func NewL2StorageConfig(config *DeployConfig, block *types.Block) (state.Storage ...@@ -413,10 +413,8 @@ func NewL2StorageConfig(config *DeployConfig, block *types.Block) (state.Storage
"msgNonce": 0, "msgNonce": 0,
} }
storage["L2CrossDomainMessenger"] = state.StorageValues{ storage["L2CrossDomainMessenger"] = state.StorageValues{
"_initialized": 1, "_initialized": 1,
"_owner": config.ProxyAdminOwner, "_owner": config.ProxyAdminOwner,
// re-entrency lock
"_status": 1,
"_initializing": false, "_initializing": false,
"_paused": false, "_paused": false,
"xDomainMsgSender": "0x000000000000000000000000000000000000dEaD", "xDomainMsgSender": "0x000000000000000000000000000000000000dEaD",
......
This diff is collapsed.
...@@ -7,9 +7,6 @@ import { ...@@ -7,9 +7,6 @@ import {
import { import {
PausableUpgradeable PausableUpgradeable
} from "@openzeppelin/contracts-upgradeable/security/PausableUpgradeable.sol"; } from "@openzeppelin/contracts-upgradeable/security/PausableUpgradeable.sol";
import {
ReentrancyGuardUpgradeable
} from "@openzeppelin/contracts-upgradeable/security/ReentrancyGuardUpgradeable.sol";
import { SafeCall } from "../libraries/SafeCall.sol"; import { SafeCall } from "../libraries/SafeCall.sol";
import { Hashing } from "../libraries/Hashing.sol"; import { Hashing } from "../libraries/Hashing.sol";
import { Encoding } from "../libraries/Encoding.sol"; import { Encoding } from "../libraries/Encoding.sol";
...@@ -43,8 +40,7 @@ contract CrossDomainMessengerLegacySpacer { ...@@ -43,8 +40,7 @@ contract CrossDomainMessengerLegacySpacer {
abstract contract CrossDomainMessenger is abstract contract CrossDomainMessenger is
CrossDomainMessengerLegacySpacer, CrossDomainMessengerLegacySpacer,
OwnableUpgradeable, OwnableUpgradeable,
PausableUpgradeable, PausableUpgradeable
ReentrancyGuardUpgradeable
{ {
/** /**
* @notice Current message version identifier. * @notice Current message version identifier.
...@@ -86,6 +82,12 @@ abstract contract CrossDomainMessenger is ...@@ -86,6 +82,12 @@ abstract contract CrossDomainMessenger is
*/ */
address public immutable OTHER_MESSENGER; address public immutable OTHER_MESSENGER;
/**
* @custom:spacer ReentrancyGuardUpgradeable
* @notice Spacer for backwards compatibility
*/
uint256[50] private __gap_reentrancy_guard;
/** /**
* @custom:legacy * @custom:legacy
* @custom:spacer blockedMessages * @custom:spacer blockedMessages
...@@ -418,7 +420,6 @@ abstract contract CrossDomainMessenger is ...@@ -418,7 +420,6 @@ abstract contract CrossDomainMessenger is
__Context_init_unchained(); __Context_init_unchained();
__Ownable_init_unchained(); __Ownable_init_unchained();
__Pausable_init_unchained(); __Pausable_init_unchained();
__ReentrancyGuard_init_unchained();
} }
/** /**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment