fix: DE logic for unlink fixed

This commit is contained in:
donosonaumczuk
2023-09-03 04:13:58 +01:00
parent e7c5034886
commit db4a345d35

View File

@@ -180,7 +180,7 @@ contract TokenHandleRegistry is ITokenHandleRegistry {
ILensHandles(LENS_HANDLES).exists(handleId) &&
ILensHandles(LENS_HANDLES).ownerOf(handleId) != transactionExecutor &&
ILensHub(LENS_HUB).exists(profileId) &&
(ILensHub(LENS_HUB).ownerOf(profileId) != transactionExecutor ||
(ILensHub(LENS_HUB).ownerOf(profileId) != transactionExecutor &&
!ILensHub(LENS_HUB).isDelegatedExecutorApproved(profileId, transactionExecutor))
) {
revert RegistryErrors.NotHandleNorTokenOwner();