Fix misleading comments (#2737)

Co-authored-by: Francisco Giordano <frangio.1@gmail.com>
This commit is contained in:
Hadrien Croubois
2021-06-24 15:37:20 +02:00
committed by GitHub
parent 6842518b1b
commit 1db3037808
2 changed files with 4 additions and 4 deletions

View File

@ -102,7 +102,7 @@ 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})$/
* /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/
*
* _Available since v4.1._
*/
@ -130,7 +130,7 @@ 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})$/
* /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/
*/
function _checkRole(bytes32 role, address account) internal view {
if (!hasRole(role, account)) {