* Now compiling in a separate directory using truffle 5. * Ported to 0.5.1, now compiling using 0.5.1. * test now also compiles using the truffle 5 hack. * Downgraded to 0.5.0. * Sorted scripts. * Cleaned up the compile script a bit.
21 lines
596 B
Solidity
21 lines
596 B
Solidity
pragma solidity ^0.5.0;
|
|
|
|
import "./RefundableCrowdsale.sol";
|
|
import "./PostDeliveryCrowdsale.sol";
|
|
|
|
|
|
/**
|
|
* @title RefundablePostDeliveryCrowdsale
|
|
* @dev Extension of RefundableCrowdsale contract that only delivers the tokens
|
|
* once the crowdsale has closed and the goal met, preventing refunds to be issued
|
|
* to token holders.
|
|
*/
|
|
contract RefundablePostDeliveryCrowdsale is RefundableCrowdsale, PostDeliveryCrowdsale {
|
|
function withdrawTokens(address beneficiary) public {
|
|
require(finalized());
|
|
require(goalReached());
|
|
|
|
super.withdrawTokens(beneficiary);
|
|
}
|
|
}
|