Skip to content

Cannot create quorum #443

@areshand

Description

@areshand

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:

  1. forge install Layr-Labs/[email protected] --no-commit (later version also has the same issue)
  2. create a registration coordinator
  3. 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

Image

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions