Skip to content

Commit c32f4bb

Browse files
0xClandestineypatil12
authored andcommitted
fix: strategy manager gap (#1508)
**Motivation:** Incorrect gap, off by one. **Modifications:** - Updated SM gap. **Result:** Correct SM gap.
1 parent 04f399a commit c32f4bb

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

src/contracts/core/StrategyManagerStorage.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,5 +104,5 @@ abstract contract StrategyManagerStorage is IStrategyManager {
104104
* variables without shifting down storage in the inheritance chain.
105105
* See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps
106106
*/
107-
uint256[31] private __gap;
107+
uint256[32] private __gap;
108108
}

src/test/integration/users/AVS.t.sol

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ contract AVS is Logger, IAllocationManagerTypes, IAVSRegistrar {
3838
IStrategyManager immutable strategyManager;
3939
IStrategyFactory immutable strategyFactory;
4040
TimeMachine immutable timeMachine;
41+
IKeyRegistrar immutable keyRegistrar;
4142
string _NAME;
4243

4344
uint32 totalOperatorSets;
@@ -50,6 +51,7 @@ contract AVS is Logger, IAllocationManagerTypes, IAVSRegistrar {
5051
strategyManager = deployer.strategyManager();
5152
strategyFactory = deployer.strategyFactory();
5253
timeMachine = deployer.timeMachine();
54+
keyRegistrar = deployer.keyRegistrar();
5355
_NAME = name;
5456
cheats.label(address(this), NAME_COLORED());
5557
}

0 commit comments

Comments
 (0)