sanity check for RefundableCrowdsale: goal > 0

This commit is contained in:
Jakub Wojciechowski
2017-07-14 16:14:56 +01:00
committed by Francisco Giordano
parent db40fd314a
commit 950b6a5e56
2 changed files with 10 additions and 0 deletions

View File

@ -22,6 +22,7 @@ contract RefundableCrowdsale is FinalizableCrowdsale {
RefundVault public vault;
function RefundableCrowdsale(uint256 _goal) {
require(_goal > 0);
vault = new RefundVault(wallet);
goal = _goal;
}