add Available since 4.1 comments

This commit is contained in:
Hadrien Croubois
2021-04-19 20:55:16 +02:00
parent b9125001f0
commit 9a698e6b7b
13 changed files with 24 additions and 2 deletions

View File

@ -99,6 +99,8 @@ abstract contract AccessControl is Context, IAccessControl, ERC165 {
* The format of the revert reason is given by the following regular expression:
*
* /^AccessControl: account (0x[0-9a-f]{20}) is missing role (0x[0-9a-f]{32})$/
*
* _Available since v4.1._
*/
modifier onlyRole(bytes32 role) {
_checkRole(role, _msgSender());