Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Flatten fixes #63

Merged
merged 5 commits into from
Jan 31, 2024
Merged

Flatten fixes #63

merged 5 commits into from
Jan 31, 2024

Conversation

klkvr
Copy link
Member

@klkvr klkvr commented Jan 30, 2024

Support for more flattening edge cases.

Resolves foundry-rs/foundry#6936 (comment) and foundry-rs/foundry#6936 (comment)

We still don't rename stuff in yul blocks.

prb-math turned out to be a great codebase to test flattening against as it has a lot of unusual patterns (qulified imports, user-defined functions on user-defined types, etc). Currently, their contracts flattened by this flattener are only having troubles with yul code blocks

src/flatten.rs Outdated Show resolved Hide resolved
@mattsse mattsse merged commit 37d6178 into foundry-rs:main Jan 31, 2024
14 checks passed
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.

3 participants