-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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
False compiler DeclarationError: Modifier already used for this function #2621
False compiler DeclarationError: Modifier already used for this function #2621
Comments
This was introduced in #2460. |
Why was the version not bumped to reflect #2460, which is a breaking change? There are legitimate use cases to use the same modifier twice on the same function. |
Ah, I see. To be honest, I did not consider multiple uses of the same modifier, but seeing your example, that was obviously a stupid assumption :-) |
Will work on this. |
No worries, thanks for the swift response 😄 Happy hacking! |
Solidity compiler throws an error
DeclarationError: Modifier already used for this function.
when a function uses modifier twice with different parameters, e.g.
The text was updated successfully, but these errors were encountered: