Fix Pausable docs
This commit is contained in:
@ -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;
|
||||
|
||||
Reference in New Issue
Block a user