fix remaining tests

This commit is contained in:
Francisco Giordano
2019-01-21 19:28:11 -03:00
parent 5eafd1dec2
commit 00f7c19d02
4 changed files with 15 additions and 2 deletions

View File

@ -1,5 +1,7 @@
pragma solidity ^0.5.0;
import "zos-lib/contracts/Initializable.sol";
import "../Crowdsale.sol";
import "../../lifecycle/Pausable.sol";
@ -7,7 +9,13 @@ import "../../lifecycle/Pausable.sol";
* @title PausableCrowdsale
* @dev Extension of Crowdsale contract where purchases can be paused and unpaused by the pauser role.
*/
contract PausableCrowdsale is Crowdsale, Pausable {
contract PausableCrowdsale is Initializable, Crowdsale, Pausable {
function initialize(address sender) public initializer {
assert(Crowdsale._hasBeenInitialized());
Pausable.initialize(sender);
}
/**
* @dev Validation of an incoming purchase. Use require statements to revert state when conditions are not met.
* Use super to concatenate validations.