Skip to content

Commit

Permalink
fix: update
Browse files Browse the repository at this point in the history
  • Loading branch information
bowenli86 committed Feb 7, 2025
1 parent b3e8de2 commit 26d6f1f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/contracts/core/AllocationManager.sol
Original file line number Diff line number Diff line change
Expand Up @@ -334,7 +334,7 @@ contract AllocationManager is
/// @inheritdoc IAllocationManager
function createOperatorSets(address avs, CreateSetParams[] calldata params) external checkCanCall(avs) {
// Check that the AVS exists and has registered metadata
require(_avsRegisteredMetadata[params.avs], InvalidAVSWithNoMetadataRegistered());
require(_avsRegisteredMetadata[avs], InvalidAVSWithNoMetadataRegistered());

for (uint256 i = 0; i < params.length; i++) {
OperatorSet memory operatorSet = OperatorSet(avs, params[i].operatorSetId);
Expand Down
3 changes: 3 additions & 0 deletions src/test/unit/AllocationManagerUnit.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -3841,6 +3841,9 @@ contract AllocationManagerUnitTests_createOperatorSets is AllocationManagerUnitT
uint256 numOpSets = r.Uint256(1, FUZZ_MAX_OP_SETS);
uint256 numStrategies = r.Uint256(1, FUZZ_MAX_STRATS);

cheats.prank(avs);
allocationManager.updateAVSMetadataURI(avs, "https://example.com");

CreateSetParams[] memory createSetParams = new CreateSetParams[](numOpSets);

for (uint256 i; i < numOpSets; ++i) {
Expand Down

0 comments on commit 26d6f1f

Please sign in to comment.