You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Apr 22, 2023. It is now read-only.
Description of _grantRole, to me it looks like, we shouldn't use this function
/** * @dev Grants `role` to `account`. * * Internal function without access restriction. * * May emit a {RoleGranted} event. */
instead,
/** * @dev Grants `role` to `account`. * * If `account` had not been already granted `role`, emits a {RoleGranted} * event. * * Requirements: * * - the caller must have ``role``'s admin role. * * May emit a {RoleGranted} event.*/function grantRole(bytes32role, addressaccount) publicvirtualoverrideonlyRole(getRoleAdmin(role)) {
_grantRole(role, account);
}
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
https://github.com/SwissDAO/membership/blob/0e61a03ece654d3d154efd6ac71ffcc9bde4486f/contracts/MemberCard.sol#L39
Description of _grantRole, to me it looks like, we shouldn't use this function
instead,
The text was updated successfully, but these errors were encountered: