-
Notifications
You must be signed in to change notification settings - Fork 169
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
New rule func-named-parameters
enforced on built-in functions
#471
Comments
func-named-parameters
func-named-parameters
enforced on built-in functions
ohh ! |
@pcaversaccio |
Yeah, that's correct. I also reproduced this. Well, an issue I can see with this solution is that for instance if you use Foundry as a testing framework, you have a lot of cheatcodes that assume more than 2 unnamed parameters, like |
@pcaversaccio
What do you think ? |
Sounds good to me. |
fixed in |
Are you gonna make a new release? |
yes, I'm not sure exactly when... but at most, this friday there will be a new one Hey man, thanks a lot for your help. I really appreciate! |
cool, sounds like an appropriate plan! thx for the swift response. |
As reported here, this new rule is enforced also on the built-in functions like
keccak256
,abi.encode
,abi.encodePacked
,bytes20
etc. for which you can't use named parameters.Example:
will result in:
My recommendation is to remove this rule on the built-in functions.
Update: It's even enforced on the Yul functions like
add
etc.The text was updated successfully, but these errors were encountered: