From 45af87fe655515e164e43d18987ef85f723dc732 Mon Sep 17 00:00:00 2001 From: Jongwon Park Date: Wed, 6 Dec 2023 16:18:41 -0800 Subject: [PATCH] Contract bug fix & comment nit --- contracts/StoryProtocol.sol | 2 +- contracts/modules/licensing/LicenseRegistry.sol | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/contracts/StoryProtocol.sol b/contracts/StoryProtocol.sol index d5d03268..48ae48b2 100644 --- a/contracts/StoryProtocol.sol +++ b/contracts/StoryProtocol.sol @@ -101,7 +101,7 @@ contract StoryProtocol is Multicall { ); } - /// @notice Transfers an IP asset to another owner. + /// @notice Registers an IP Asset. /// @param ipOrg_ The governing IP Org under which the IP asset is registered. /// @param params_ The registration params, including owner, name, hash. /// @param preHooksData_ Hooks to embed with the registration pre-call. diff --git a/contracts/modules/licensing/LicenseRegistry.sol b/contracts/modules/licensing/LicenseRegistry.sol index 464a160f..d2230e74 100644 --- a/contracts/modules/licensing/LicenseRegistry.sol +++ b/contracts/modules/licensing/LicenseRegistry.sol @@ -58,7 +58,7 @@ contract LicenseRegistry is ERC721 { !MODULE_REGISTRY.isModule( ModuleRegistryKeys.LICENSING_MODULE, msg.sender - ) || msg.sender != ownerOf(licenseId_) + ) && msg.sender != ownerOf(licenseId_) ) { revert Errors.LicenseRegistry_CallerNotLicensingModuleOrLicensee(); }