-
Notifications
You must be signed in to change notification settings - Fork 63
contract.Roles
Aleksey Bykhun edited this page Jan 18, 2023
·
1 revision
Library for managing addresses assigned to a Role.
Give an account access to this role.
function add(Role storage role, address account) internal;
Remove an account's access to this role.
function remove(Role storage role, address account) internal;
Check if an account has this role.
function has(Role storage role, address account) internal view returns (bool);
Returns
Name | Type | Description |
---|---|---|
<none> |
bool |
bool |
struct Role {
mapping(address => bool) bearer;
}