From d25e9f6d98d160c5fdd860b79c8de9a73fd50e2e Mon Sep 17 00:00:00 2001 From: Peter Michael Date: Mon, 4 Jul 2022 09:58:20 -0400 Subject: [PATCH] misc: Added profile ID zero check to profile handle existence check. --- contracts/libraries/InteractionHelpers.sol | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contracts/libraries/InteractionHelpers.sol b/contracts/libraries/InteractionHelpers.sol index af27b33..ba3e9b1 100644 --- a/contracts/libraries/InteractionHelpers.sol +++ b/contracts/libraries/InteractionHelpers.sol @@ -317,7 +317,7 @@ library InteractionHelpers { mstore(32, PROFILE_ID_BY_HANDLE_HASH_MAPPING_SLOT) let handleHashSlot := keccak256(0, 64) let resolvedProfileId := sload(handleHashSlot) - shouldRevert := iszero(eq(resolvedProfileId, profileId)) + shouldRevert := or(iszero(eq(resolvedProfileId, profileId)), iszero(profileId)) // Store the new memory pointer in the free memory pointer slot mstore(64, add(add(ptr, 32), size)) }