Skip to content

Fix flaky test by sorting operatorIds #161

@wadealexc

Description

@wadealexc

BLSMockAVSDeployer does horrible things to generate a sorted list of random operator ids:

https://github.com/layr-labs/eigenlayer-middleware/blob/cac457271cc43feb8aefe886ef359a4f6621cb9c/test/utils/BLSMockAVSDeployer.sol#L57-L67

This results in tests failing very rarely due to "out of gas". We should sort operatorIds here rather than hashing elements.

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