From 6d0eddb9a75b5b51dca167a317ec790ae28d1503 Mon Sep 17 00:00:00 2001 From: Raul Date: Fri, 15 Dec 2023 11:13:10 -0500 Subject: [PATCH] fix view visibility --- .../interfaces/modules/registration/IRegistrationModule.sol | 2 +- contracts/ip-org/IPOrg.sol | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/contracts/interfaces/modules/registration/IRegistrationModule.sol b/contracts/interfaces/modules/registration/IRegistrationModule.sol index 4d94471f..e3d48e82 100644 --- a/contracts/interfaces/modules/registration/IRegistrationModule.sol +++ b/contracts/interfaces/modules/registration/IRegistrationModule.sol @@ -52,7 +52,7 @@ interface IRegistrationModule is IModule { /// @notice Gets the IP asset id associated with an IP Org asset. /// @param ipOrg_ The address of the governing IP asset IP Org. /// @param ipOrgAssetId_ The localized id of the IP asset within the IP Org. - function ipAssetId(address ipOrg_, uint256 ipOrgAssetId_) external returns (uint256); + function ipAssetId(address ipOrg_, uint256 ipOrgAssetId_) external view returns (uint256); /// @notice Renders metadata of an IP Asset localized for an IP Org. /// @param ipOrg_ The address of the IP Org of the IP asset. diff --git a/contracts/ip-org/IPOrg.sol b/contracts/ip-org/IPOrg.sol index 8ecbcf45..9e9f660b 100644 --- a/contracts/ip-org/IPOrg.sol +++ b/contracts/ip-org/IPOrg.sol @@ -74,7 +74,7 @@ contract IPOrg is IIPOrg, ERC721Upgradeable { /// @notice Gets the global IP asset id associated with this IP Org asset. /// @param id_ The local id of the IP Org wrapped IP asset. /// @return The global identifier of the IP asset. - function ipAssetId(uint256 id_) public returns (uint256) { + function ipAssetId(uint256 id_) public view returns (uint256) { address registrationModule = address(MODULE_REGISTRY.protocolModule(REGISTRATION_MODULE_KEY)); return IRegistrationModule(registrationModule).ipAssetId(address(this), id_); }