Skip to content

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

Open
ashutoshvarma wants to merge 1 commit intoNear-One:masterfrom
ashutoshvarma:feat/no-zero-admin-constructor
Open

feat(contracts-eth): don't allow zero-address initialization in AdminControlled #866
ashutoshvarma wants to merge 1 commit intoNear-One:masterfrom
ashutoshvarma:feat/no-zero-admin-constructor

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