diff --git a/src/ServiceManagerBase.sol b/src/ServiceManagerBase.sol index 1aa95db7..dd3c16e7 100644 --- a/src/ServiceManagerBase.sol +++ b/src/ServiceManagerBase.sol @@ -49,11 +49,11 @@ abstract contract ServiceManagerBase is IServiceManager, OwnableUpgradeable { } /** - * @notice Sets the metadata URI for the AVS + * @notice Updates the metadata URI for the AVS * @param _metadataURI is the metadata URI for the AVS * @dev only callable by the owner */ - function setMetadataURI(string memory _metadataURI) public virtual onlyOwner { + function updateAVSMetadataURI(string memory _metadataURI) public virtual onlyOwner { _avsDirectory.updateAVSMetadataURI(_metadataURI); } diff --git a/src/interfaces/IServiceManager.sol b/src/interfaces/IServiceManager.sol index 6f31cb2d..bda03a88 100644 --- a/src/interfaces/IServiceManager.sol +++ b/src/interfaces/IServiceManager.sol @@ -10,10 +10,10 @@ import {IDelegationManager} from "eigenlayer-contracts/src/contracts/interfaces/ */ interface IServiceManager { /** - * @notice Sets the metadata URI for the AVS + * @notice Updates the metadata URI for the AVS * @param _metadataURI is the metadata URI for the AVS */ - function setMetadataURI(string memory _metadataURI) external; + function updateAVSMetadataURI(string memory _metadataURI) external; /** * @notice Forwards a call to EigenLayer's DelegationManager contract to confirm operator registration with the AVS diff --git a/test/integration/CoreRegistration.t.sol b/test/integration/CoreRegistration.t.sol index 74c5e57b..fb7d9639 100644 --- a/test/integration/CoreRegistration.t.sol +++ b/test/integration/CoreRegistration.t.sol @@ -170,7 +170,7 @@ contract Test_CoreRegistration is MockAVSDeployer { require(operator != serviceManager.owner(), "bad test setup"); cheats.prank(operator); cheats.expectRevert("Ownable: caller is not the owner"); - serviceManager.setMetadataURI("Test MetadataURI"); + serviceManager.updateAVSMetadataURI("Test MetadataURI"); } event AVSMetadataURIUpdated(address indexed avs, string metadataURI); @@ -180,7 +180,7 @@ contract Test_CoreRegistration is MockAVSDeployer { cheats.prank(toPrankFrom); cheats.expectEmit(true, true, true, true); emit AVSMetadataURIUpdated(address(serviceManager), "Test MetadataURI"); - serviceManager.setMetadataURI("Test MetadataURI"); + serviceManager.updateAVSMetadataURI("Test MetadataURI"); } // Utils