From b961eea89dbeb37f4b5d5afe36fe2f05be130b46 Mon Sep 17 00:00:00 2001 From: Francisco Giordano Date: Sun, 2 Jul 2017 17:10:11 -0300 Subject: [PATCH] fix claimRefund precondition --- contracts/crowdsale/RefundableCrowdsale.sol | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contracts/crowdsale/RefundableCrowdsale.sol b/contracts/crowdsale/RefundableCrowdsale.sol index ad5631495..6bf3b0e5b 100644 --- a/contracts/crowdsale/RefundableCrowdsale.sol +++ b/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);