Skip to content

Commit

Permalink
Refactor address-to-hex-string conversion in _checkRole function (#…
Browse files Browse the repository at this point in the history
…3509)

Signed-off-by: Pascal Marco Caversaccio <pascal.caversaccio@hotmail.ch>
Co-authored-by: Francisco <frangio.1@gmail.com>
  • Loading branch information
pcaversaccio and frangio committed Jun 27, 2022
1 parent 6f88199 commit 40172c2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion contracts/access/AccessControl.sol
Expand Up @@ -110,7 +110,7 @@ abstract contract AccessControl is Context, IAccessControl, ERC165 {
string(
abi.encodePacked(
"AccessControl: account ",
Strings.toHexString(uint160(account), 20),
Strings.toHexString(account),
" is missing role ",
Strings.toHexString(uint256(role), 32)
)
Expand Down

0 comments on commit 40172c2

Please sign in to comment.