Use msg.sender in docs

pull/2213/head
Francisco Giordano 5 years ago
parent 364da52a49
commit ad290e7181
  1. 2
      contracts/access/AccessControl.sol

@ -21,7 +21,7 @@ import "../GSN/Context.sol";
*
* ```
* function foo() public {
* require(hasRole(MY_ROLE, _msgSender()));
* require(hasRole(MY_ROLE, msg.sender));
* ...
* }
* ```

Loading…
Cancel
Save