Skip to content

Commit 26c68b9

Browse files
committed
fix: update storage
1 parent d828cd7 commit 26c68b9

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

src/contracts/core/AllocationManager.sol

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -284,8 +284,6 @@ contract AllocationManager is
284284
) external onlyWhenNotPaused(PAUSED_OPERATOR_SET_REGISTRATION_AND_DEREGISTRATION) {
285285
// Check that the caller is either authorized on behalf of the operator or AVS
286286
require(_checkCanCall(params.operator) || _checkCanCall(params.avs), InvalidCaller());
287-
// Check that the AVS exists and has registered metadata
288-
require(_avsRegisteredMetadata[params.avs], InvalidAVSWithNoMetadataRegistered());
289287

290288
for (uint256 i = 0; i < params.operatorSetIds.length; i++) {
291289
// Check the operator set exists and the operator is registered to it

src/contracts/core/AllocationManagerStorage.sol

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,10 +43,6 @@ abstract contract AllocationManagerStorage is IAllocationManager {
4343
/// Note: if set to 0, defaults to the AVS's address
4444
mapping(address avs => IAVSRegistrar) internal _avsRegistrar;
4545

46-
/// @dev Lists the AVSs who has registered metadata and claimed itself as an AVS
47-
/// @notice bool is not used and if always true if the avs has registered metadata
48-
mapping(address avs => bool) internal _avsRegisteredMetadata;
49-
5046
/// @dev Lists the operator set ids an AVS has created
5147
mapping(address avs => EnumerableSet.UintSet) internal _operatorSets;
5248

@@ -93,6 +89,10 @@ abstract contract AllocationManagerStorage is IAllocationManager {
9389
/// These must be completed in order to free up magnitude for future allocation
9490
mapping(address operator => mapping(IStrategy strategy => DoubleEndedQueue.Bytes32Deque)) internal deallocationQueue;
9591

92+
/// @dev Lists the AVSs who has registered metadata and claimed itself as an AVS
93+
/// @notice bool is not used and is always true if the avs has registered metadata
94+
mapping(address avs => bool) internal _avsRegisteredMetadata;
95+
9696
// Construction
9797

9898
constructor(IDelegationManager _delegation, uint32 _DEALLOCATION_DELAY, uint32 _ALLOCATION_CONFIGURATION_DELAY) {

0 commit comments

Comments
 (0)