Fix Pausable docs

pull/2173/head
Nicolás Venturo 5 years ago
parent 96a7113a16
commit c4e5daff86
  1. 11
      contracts/utils/Pausable.sol

@ -13,20 +13,19 @@ import "../GSN/Context.sol";
*/
contract Pausable is Context {
/**
* @dev Emitted when the pause is triggered by a pauser (`account`).
* @dev Emitted when the pause is triggered by `account`.
*/
event Paused(address account);
/**
* @dev Emitted when the pause is lifted by a pauser (`account`).
* @dev Emitted when the pause is lifted by `account`.
*/
event Unpaused(address account);
bool private _paused;
/**
* @dev Initializes the contract in unpaused state. Assigns the Pauser role
* to the deployer.
* @dev Initializes the contract in unpaused state.
*/
constructor () internal {
_paused = false;
@ -56,7 +55,7 @@ contract Pausable is Context {
}
/**
* @dev Called by a pauser to pause, triggers stopped state.
* @dev Triggers stopped state.
*/
function _pause() internal virtual whenNotPaused {
_paused = true;
@ -64,7 +63,7 @@ contract Pausable is Context {
}
/**
* @dev Called by a pauser to unpause, returns to normal state.
* @dev Returns to normal state.
*/
function _unpause() internal virtual whenPaused {
_paused = false;

Loading…
Cancel
Save