Skip to content

Conversation

@blishko
Copy link
Collaborator

@blishko blishko commented Feb 10, 2026

The code was already trying to handle yul files with named object format, however, the logic was not correct and we ended up trying to compile empty input, which resulted in error.

There are several fixes:

  • onlyAfter now returns only lines after the matched line. Previously, the matched line was returned as well.
  • The regex used to check if we have object line in the file now no longer contains quotes. Previously, this regex never matched because of this quotes.
  • We now extract the object name in case of an object format. This is necessary to pass to the yul function. Previously, we always passed empty string. However, in case of named objects, the key in json is the object name.

The code was already trying to handle yul files with named object
format, however, the logic was not correct and we ended up trying to
compile empty input, which resulted in error.

There are several fixes:
- `onlyAfter` now returns only lines *after* the matched line.
  Previously, the matched line was returned as well.
- The regex used to check if we have `object` line in the file now no
  longer contains quotes. Previously, this regex never matched because
  of this quotes.
- We now extract the object name in case of an object format. This is
  necessary to pass to the `yul` function. Previously, we always passed
  empty string. However, in case of named objects, the key in json is
  the object name.
@blishko blishko force-pushed the fix-yul-with-objects branch from 495f617 to 0510795 Compare February 11, 2026 08:35
@blishko blishko merged commit 0510795 into main Feb 11, 2026
7 of 8 checks passed
@blishko blishko deleted the fix-yul-with-objects branch February 11, 2026 08:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant