Skip to main content

HasAdmin

HasAdmin

Base contract that provides an OWNER_ROLE and convenience function/modifier for checking sender against this role. Inherting contracts must set up this role using `_setupRole` and `_setRoleAdmin`.

OWNER_ROLE

bytes32 OWNER_ROLE

ID for OWNER_ROLE

isAdmin

function isAdmin() public view returns (bool)

Determine whether msg.sender has OWNER_ROLE

NameTypeDescription
[0]boolisAdmin True when msg.sender has OWNER_ROLE

onlyAdmin

modifier onlyAdmin()