Add note about default admin role security (#2211)
* Add note about default admin security * Update contracts/access/AccessControl.sol Co-Authored-By: Francisco Giordano <frangio.1@gmail.com> Co-authored-by: Francisco Giordano <frangio.1@gmail.com>
This commit is contained in:
@ -34,6 +34,10 @@ import "../GSN/Context.sol";
|
|||||||
* that only accounts with this role will be able to grant or revoke other
|
* that only accounts with this role will be able to grant or revoke other
|
||||||
* roles. More complex role relationships can be created by using
|
* roles. More complex role relationships can be created by using
|
||||||
* {_setRoleAdmin}.
|
* {_setRoleAdmin}.
|
||||||
|
*
|
||||||
|
* WARNING: The `DEFAULT_ADMIN_ROLE` is also its own admin: it has permission to
|
||||||
|
* grant and revoke this role. Extra precautions should be taken to secure
|
||||||
|
* accounts that have been granted it.
|
||||||
*/
|
*/
|
||||||
abstract contract AccessControl is Context {
|
abstract contract AccessControl is Context {
|
||||||
using EnumerableSet for EnumerableSet.AddressSet;
|
using EnumerableSet for EnumerableSet.AddressSet;
|
||||||
|
|||||||
Reference in New Issue
Block a user