Skip to content

Commit

Permalink
chore: forge fmt + tweak docstrings
Browse files Browse the repository at this point in the history
  • Loading branch information
nadir-akhtar committed Feb 7, 2025
1 parent ae1a928 commit 37a8135
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/SocketRegistry.sol
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,15 @@ contract SocketRegistry is SocketRegistryStorage {
ISlashingRegistryCoordinator _slashingRegistryCoordinator
) SocketRegistryStorage(address(_slashingRegistryCoordinator)) {}

/// @notice sets the socket for an operator only callable by the SlashingRegistryCoordinator
/// @inheritdoc ISocketRegistry
function setOperatorSocket(
bytes32 _operatorId,
string memory _socket
) external onlySlashingRegistryCoordinator {
operatorIdToSocket[_operatorId] = _socket;
}

/// @notice gets the stored socket for an operator
/// @inheritdoc ISocketRegistry
function getOperatorSocket(
bytes32 _operatorId
) external view returns (string memory) {
Expand Down
4 changes: 2 additions & 2 deletions src/SocketRegistryStorage.sol
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@ abstract contract SocketRegistryStorage is ISocketRegistry {
* CONSTANTS AND IMMUTABLES
*
*/

/// @notice The address of the SlashingRegistryCoordinator
address public immutable slashingRegistryCoordinator;

/**
*
* STATE
Expand Down
2 changes: 1 addition & 1 deletion src/interfaces/ISlashingRegistryCoordinator.sol
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ interface ISlashingRegistryCoordinator is
* @dev This is only relevant for Slashing AVSs
*/
function allocationManager() external view returns (IAllocationManager);

/**
* @notice Reference to the SocketRegistry contract.
* @return The SocketRegistry contract interface.
Expand Down

0 comments on commit 37a8135

Please sign in to comment.