From db4a345d352e199470e79bdb8bc87f0c98ee25b4 Mon Sep 17 00:00:00 2001 From: donosonaumczuk Date: Sun, 3 Sep 2023 04:13:58 +0100 Subject: [PATCH] fix: DE logic for unlink fixed --- contracts/namespaces/TokenHandleRegistry.sol | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contracts/namespaces/TokenHandleRegistry.sol b/contracts/namespaces/TokenHandleRegistry.sol index 292f87b..a9393a3 100644 --- a/contracts/namespaces/TokenHandleRegistry.sol +++ b/contracts/namespaces/TokenHandleRegistry.sol @@ -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();