File tree 2 files changed +5
-1
lines changed
2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -62,6 +62,7 @@ contract RegistryCoordinator is RegistryCoordinatorStorage {
62
62
SignatureWithSaltAndExpiry memory operatorSignature
63
63
) external onlyWhenNotPaused (PAUSED_REGISTER_OPERATOR) {
64
64
require (! isM2QuorumRegistrationDisabled, M2QuorumRegistrationIsDisabled ());
65
+ require (quorumNumbers.orderedBytesArrayToBitmap ().isSubsetOf (m2QuorumBitmap), OnlyM2QuorumsAllowed ());
65
66
66
67
// Check if the operator has registered before
67
68
bool operatorRegisteredBefore = _operatorInfo[msg .sender ].status == OperatorStatus.REGISTERED;
@@ -91,7 +92,8 @@ contract RegistryCoordinator is RegistryCoordinatorStorage {
91
92
SignatureWithSaltAndExpiry memory operatorSignature
92
93
) external onlyWhenNotPaused (PAUSED_REGISTER_OPERATOR) {
93
94
require (! isM2QuorumRegistrationDisabled, M2QuorumRegistrationIsDisabled ());
94
-
95
+ require (quorumNumbers.orderedBytesArrayToBitmap ().isSubsetOf (m2QuorumBitmap), OnlyM2QuorumsAllowed ());
96
+
95
97
// Check if the operator has registered before
96
98
bool operatorRegisteredBefore = _operatorInfo[msg .sender ].status == OperatorStatus.REGISTERED;
97
99
Original file line number Diff line number Diff line change @@ -20,6 +20,8 @@ interface IRegistryCoordinatorErrors is ISlashingRegistryCoordinatorErrors {
20
20
error M2QuorumRegistrationIsDisabled ();
21
21
/// @notice Thrown when operator set operations are attempted while not enabled.
22
22
error OperatorSetsNotEnabled ();
23
+ /// @notice Thrown when only M2 quorums are allowed.
24
+ error OnlyM2QuorumsAllowed ();
23
25
}
24
26
25
27
interface IRegistryCoordinatorTypes is ISlashingRegistryCoordinatorTypes {}
You can’t perform that action at this time.
0 commit comments