Skip to content

Commit

Permalink
Skip calls to EntryPoint in illegal zero code size calls check
Browse files Browse the repository at this point in the history
  • Loading branch information
forshtat committed Aug 8, 2024
1 parent 51f2efb commit e0df208
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 e0df208

Please sign in to comment.