misc: Added profile ID zero check to profile handle existence check.

This commit is contained in:
Peter Michael
2022-07-04 09:58:20 -04:00
parent 9c80cab06f
commit d25e9f6d98

View File

@@ -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))
}