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

fix: dont strip empty () on constructors #6740

Merged

Conversation

mattsse
Copy link
Member

@mattsse mattsse commented Jan 9, 2024

Closes #5633

This is a bit horrible and there can be edge cases because we can't know for certain if a modifier is actually a modifier or an inherited contract, so we do our best by checking inherited bases and assume lowercase is modifier

@mattsse mattsse requested a review from rkrasiuk as a code owner January 9, 2024 16:11
crates/fmt/src/formatter.rs Outdated Show resolved Hide resolved
@mattsse mattsse merged commit ce5d2b5 into foundry-rs:master Jan 9, 2024
18 of 19 checks passed
RPate97 pushed a commit to RPate97/foundry that referenced this pull request Jan 12, 2024
* fix: dont strip empty () on constructors

* else if
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.

forge fmt formatting with Modifier-style base constructor call without arguments compiler error
2 participants