Browse Source

fix claimRefund precondition

Francisco Giordano 8 years ago
parent
commit
b961eea89d
1 changed files with 1 additions and 1 deletions
  1. 1 1
      contracts/crowdsale/RefundableCrowdsale.sol

+ 1 - 1
contracts/crowdsale/RefundableCrowdsale.sol

@@ -35,7 +35,7 @@ contract RefundableCrowdsale is FinalizableCrowdsale {
 
   // if crowdsale is unsuccessful, investors can claim refunds here
   function claimRefund() {
-    require(hasEnded());
+    require(isFinalized);
     require(!goalReached());
 
     vault.refund(msg.sender);