convert Pausable to initializers

This commit is contained in:
Francisco Giordano
2018-09-25 18:51:19 -03:00
parent 21e016378c
commit c630cb4016
2 changed files with 9 additions and 2 deletions

View File

@ -1,5 +1,6 @@
pragma solidity ^0.4.24;
import "../Initializable.sol";
import "../access/roles/PauserRole.sol";
@ -7,12 +8,15 @@ import "../access/roles/PauserRole.sol";
* @title Pausable
* @dev Base contract which allows children to implement an emergency stop mechanism.
*/
contract Pausable is PauserRole {
contract Pausable is Initializable, PauserRole {
event Paused();
event Unpaused();
bool private _paused = false;
function initialize() public initializer {
PauserRole.initialize();
}
/**
* @return true if the contract is paused, false otherwise.