-
Notifications
You must be signed in to change notification settings - Fork 138
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
Grant roles or owner using constructor arguments #205
Comments
A question to ask is whether each role should have its own constructor argument, or if we add just one argument and reuse it for all roles. A third option could be to add one argument for the admin and a separate argument for all other roles. If the address passed in is zero, the role shouldn't be granted. |
This should also apply for owner if using Ownable. |
This issue is important because if the contract is deployed using |
|
When access control is used, the constructor currently grants roles such as:
It would be better practice to set roles explicitly using constructor arguments instead.
The text was updated successfully, but these errors were encountered: