-
Notifications
You must be signed in to change notification settings - Fork 165
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
Support for named parameters in mappings (Solidity v0.8.18) #397
Comments
Two things to do here:
|
Agree, a rule would be cool. But I think until the rule gets added, just adding support for the parsing would be helpful. |
Hey @fvictorio, do you have any updates on this? My github actions are failing because of this. |
Would be great to get support for this! |
Also would love this : ) |
Guys, I created a new rule for this in this PR |
Looks like this issue can be closed now, since v3.4.0 includes support for named mapping params 🥳 |
Solidity v0.8.18 was released earlier this week, and one of the newly introduced features are named parameters in mappings. That means that we can now define mappings like this:
Solhint throws with the following error when it sees the code above:
The text was updated successfully, but these errors were encountered: