File tree Expand file tree Collapse file tree 2 files changed +0
-29
lines changed Expand file tree Collapse file tree 2 files changed +0
-29
lines changed Original file line number Diff line number Diff line change @@ -37,13 +37,6 @@ contract SocketRegistry is ISocketRegistry {
3737 operatorIdToSocket[_operatorId] = _socket;
3838 }
3939
40- /// @notice migrates the sockets for a list of operators only callable by the owner of the RegistryCoordinator
41- function migrateOperatorSockets (bytes32 [] memory _operatorIds , string [] memory _sockets ) external onlyCoordinatorOwner {
42- for (uint256 i = 0 ; i < _operatorIds.length ; i++ ) {
43- operatorIdToSocket[_operatorIds[i]] = _sockets[i];
44- }
45- }
46-
4740 /// @notice gets the stored socket for an operator
4841 function getOperatorSocket (bytes32 _operatorId ) external view returns (string memory ) {
4942 return operatorIdToSocket[_operatorId];
Original file line number Diff line number Diff line change @@ -24,26 +24,4 @@ contract SocketRegistryUnitTests is MockAVSDeployer {
2424 socketRegistry.setOperatorSocket (defaultOperatorId, "testSocket " );
2525 }
2626
27- function test_migrateOperatorSockets () public {
28- bytes32 [] memory operatorIds = new bytes32 [](1 );
29- operatorIds[0 ] = defaultOperatorId;
30- string [] memory sockets = new string [](1 );
31- sockets[0 ] = "testSocket " ;
32-
33- vm.startPrank (registryCoordinator.owner ());
34- socketRegistry.migrateOperatorSockets (operatorIds, sockets);
35- assertEq (socketRegistry.getOperatorSocket (defaultOperatorId), "testSocket " );
36- }
37-
38- function test_migrateOperatorSockets_revert_notCoordinatorOwner () public {
39- bytes32 [] memory operatorIds = new bytes32 [](1 );
40- operatorIds[0 ] = defaultOperatorId;
41- string [] memory sockets = new string [](1 );
42- sockets[0 ] = "testSocket " ;
43-
44- vm.startPrank (address (0 ));
45- vm.expectRevert ("SocketRegistry.onlyCoordinatorOwner: caller is not the owner of the registryCoordinator " );
46- socketRegistry.migrateOperatorSockets (operatorIds, sockets);
47- }
48-
4927}
You can’t perform that action at this time.
0 commit comments