Skip to content

Scripts: Fix incorrect check when preparing bytecode report summary - #17189

Merged
nikola-matic merged 1 commit into
developfrom
fix-bug-in-bytecode-report
Nov 6, 2026
Merged

nikola-matic merged 1 commit into
developfrom
fix-bug-in-bytecode-report

Conversation

@blishko

@blishko blishko commented Nov 5, 2026 •

Copy link
Copy Markdown
Contributor

The iteration over the list was incorrect, it was checking if the elements of the list are None, while it is supposed to check if the bytecode and metadata fields of the elements are None.

The elements are instances of ContractReport and the fixed version corresponds to what format_report does.

AI Disclosure

This was found by Opus 5.5.

The iteration over the list was incorrect, it was checking if the
elements of the list are None, while it is suppose to check if the
`bytecode` and `metadata` fields of the elements are None.
@nikola-matic
nikola-matic merged commit 6673382 into develop Nov 6, 2026
83 checks passed
@nikola-matic
nikola-matic deleted the fix-bug-in-bytecode-report branch November 6, 2026 10:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants