Skip to content

Commit

Permalink
fix view visibility
Browse files Browse the repository at this point in the history
  • Loading branch information
Raul committed Dec 15, 2023
1 parent bab4ff5 commit 6d0eddb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion contracts/ip-org/IPOrg.sol
Original file line number Diff line number Diff line change
Expand Up @@ -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_);
}
Expand Down

0 comments on commit 6d0eddb

Please sign in to comment.