From e0df208045ac9bb8cac4004e90c93ac3e9f34b2d Mon Sep 17 00:00:00 2001 From: Alex Forshtat Date: Thu, 8 Aug 2024 17:25:31 +0200 Subject: [PATCH] Skip calls to EntryPoint in illegal zero code size calls check --- packages/validation-manager/src/TracerResultParser.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/validation-manager/src/TracerResultParser.ts b/packages/validation-manager/src/TracerResultParser.ts index f19c2faf..ee1c3e47 100644 --- a/packages/validation-manager/src/TracerResultParser.ts +++ b/packages/validation-manager/src/TracerResultParser.ts @@ -415,7 +415,7 @@ export function tracerResultParser ( let illegalZeroCodeAccess: any for (const addr of Object.keys(currentNumLevel.contractSize)) { // [OP-042] - if (addr !== sender && currentNumLevel.contractSize[addr].contractSize <= 2) { + if (addr !== sender && addr.toLowerCase() !== entryPointAddress.toLowerCase() && currentNumLevel.contractSize[addr].contractSize <= 2) { illegalZeroCodeAccess = currentNumLevel.contractSize[addr] illegalZeroCodeAccess.address = addr break