File tree Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -12,10 +12,7 @@ contract BLSApkRegistry is BLSApkRegistryStorage {
12
12
13
13
/// @notice when applied to a function, only allows the RegistryCoordinator to call it
14
14
modifier onlyRegistryCoordinator () {
15
- require (
16
- msg .sender == address (registryCoordinator),
17
- "BLSApkRegistry.onlyRegistryCoordinator: caller is not the registry coordinator "
18
- );
15
+ _checkRegistryCoordinator ();
19
16
_;
20
17
}
21
18
@@ -281,4 +278,11 @@ contract BLSApkRegistry is BLSApkRegistryStorage {
281
278
function getOperatorId (address operator ) public view returns (bytes32 ) {
282
279
return operatorToPubkeyHash[operator];
283
280
}
281
+
282
+ function _checkRegistryCoordinator () internal view {
283
+ require (
284
+ msg .sender == address (registryCoordinator),
285
+ "BLSApkRegistry.onlyRegistryCoordinator: caller is not the registry coordinator "
286
+ );
287
+ }
284
288
}
You can’t perform that action at this time.
0 commit comments