Skip to content

Commit

Permalink
Skip entrypoint illegal zero code size calls check (#219)
Browse files Browse the repository at this point in the history
  • Loading branch information
forshtat authored Aug 13, 2024
1 parent ce9a2ec commit 41e1831
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/validation-manager/src/TracerResultParser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 41e1831

Please sign in to comment.