From c86143bbfecc0a4cdec48e5917c358562f83450e Mon Sep 17 00:00:00 2001 From: Bridgerz Date: Thu, 5 Sep 2024 17:52:53 -0700 Subject: [PATCH] Add storage gap variable to the CommitteeUpgradeable contract (#19228) ## Description In the case the `CommitteeUpgradeable` contract needs to include more storage variables, a storage gap variable is needed to reserve storage slots so the child contract state is not overwritten. ## Test plan Contract upgrade unit tests --- bridge/evm/contracts/utils/CommitteeUpgradeable.sol | 2 ++ 1 file changed, 2 insertions(+) diff --git a/bridge/evm/contracts/utils/CommitteeUpgradeable.sol b/bridge/evm/contracts/utils/CommitteeUpgradeable.sol index 4e415174d5335..af5d2839749a9 100644 --- a/bridge/evm/contracts/utils/CommitteeUpgradeable.sol +++ b/bridge/evm/contracts/utils/CommitteeUpgradeable.sol @@ -20,6 +20,8 @@ abstract contract CommitteeUpgradeable is /* ========== STATE VARIABLES ========== */ bool private _upgradeAuthorized; + // upgradeablity storage gap + uint256[50] private __gap; /* ========== INITIALIZER ========== */