-
Notifications
You must be signed in to change notification settings - Fork 118
Description
Describe the bug
This function (_createQuorum) calls the allocationManager's createOperatorSets function. The createOperatorSets will then checks if the msg.sender is the admin of AVS.
https://github.com/Layr-Labs/eigenlayer-middleware/blob/dev/src/SlashingRegistryCoordinator.sol#L825
However, the msg.sender here is the either proxy or the implementation of the registryCoordinator, which is a contract and doesn't have the permission to creatorOperatorSet .
To Reproduce
Steps to reproduce the behavior:
- forge install Layr-Labs/[email protected] --no-commit (later version also has the same issue)
- create a registration coordinator
- registryCoordinator.createTotalDelegatedStakeQuorum(operatorSetParams, 0, strategyParams);
vm.startBroadcast(_avs); console.log("isAdmin", permissionController.isAdmin(_avs, address(registryCoordinator))); registryCoordinator.createTotalDelegatedStakeQuorum(operatorSetParams, 0, strategyParams); vm.stopBroadcast();
Expected behavior
contract should be deployable
Screenshots
Environment
Enter important environment info needed to reproduce the bug.
- [e.g. chrome, safari]
- [e.g. version]
Don't Forget To
- Assign this to a project (our default is eigenlayer)
- Add priority + size estimate
- Set status to New
