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

feat(contracts-eth): don't allow zero-address initialization in AdminControlled #866

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

ashutoshvarma
Copy link

Fix #844

Note: -

Instead of adding a new require(_admin != address(0) (and copying the comment to describe why) I used existing verifyAdminAddress() to reduce redundancy but the existing method name and require error message might not be appropriate. Also, the fact that newAdmin != admin will hit first rather than zero address check.

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.

AdminControlled: don't allow zero-address initialization
1 participant