From 41e18312d209b0d8f1c02bc8fb73fab1d09978ff Mon Sep 17 00:00:00 2001 From: Alex Forshtat Date: Tue, 13 Aug 2024 19:50:24 +0300 Subject: [PATCH] Skip entrypoint illegal zero code size calls check (#219) --- 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