diff --git a/contracts/TimeManagerV5.sol b/contracts/TimeManagerV5.sol index 033cc88..59ba7c3 100644 --- a/contracts/TimeManagerV5.sol +++ b/contracts/TimeManagerV5.sol @@ -11,6 +11,13 @@ contract TimeManagerV5 { /// @dev Sets true when block timestamp is used bool public isTimeBased; + /** + * @dev This empty reserved space is put in place to allow future versions to add new + * variables without shifting down storage in the inheritance chain + * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps + */ + uint256[47] private __gap; + /** * @dev Retrieves the current slot * @return Current slot diff --git a/contracts/TimeManagerV8.sol b/contracts/TimeManagerV8.sol index eaee7c4..e36f339 100644 --- a/contracts/TimeManagerV8.sol +++ b/contracts/TimeManagerV8.sol @@ -10,6 +10,13 @@ abstract contract TimeManagerV8 { /// @custom:oz-upgrades-unsafe-allow state-variable-immutable bool public immutable isTimeBased; + /** + * @dev This empty reserved space is put in place to allow future versions to add new + * variables without shifting down storage in the inheritance chain + * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps + */ + uint256[48] private __gap; + /// @custom:oz-upgrades-unsafe-allow state-variable-immutable function() view returns (uint256) private immutable _getCurrentSlot;