You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
hey @Metaxona thank you for the report! any chance you could share a repro for this?
If the code being flattened contains do-while blocks than I probably know what might be causing this, but otherwise a repro would be very useful here
yeah it does indeed contain a do while loop, several of them. though I am currently not able to share the repo since it's a private and not a personal repo
but i did use do while loops in-place of all or most for loop applications
mattsse
pushed a commit
to foundry-rs/compilers
that referenced
this issue
Feb 9, 2024
Component
Forge
Have you ensured that all of these are up to date?
What version of Foundry are you on?
forge 0.2.0 (b174c3a 2024-02-09T00:16:22.953958126Z)
What command(s) is the bug in?
forge flatten
Operating System
Linux
Describe the bug
UUPS Contract Implementations are not getting flattened, only the proxy contracts and other specified contracts are getting flattened
errors are showing:
Failed to flatten: missing field
block
at line 1 column 194281Failed to flatten: missing field
block
at line 1 column 492135when it's the implementation's turn to be flattened
tried it on WSL
and on Ubuntu server
forge 0.2.0 (b174c3a 2024-02-09T00:16:22.953958126Z)
ending up with the same result
The text was updated successfully, but these errors were encountered: