Skip to content

Commit

Permalink
contracts: with corrected hasSaleEnded, revert requirement for update…
Browse files Browse the repository at this point in the history
…WhiteList to not-hasSaleEnded
  • Loading branch information
benjaminbollen committed Nov 3, 2017
1 parent 3212095 commit e501989
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions contracts/TokenSale.sol
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ contract TokenSale is OpsManaged, Pausable, TokenSaleConfig { // Pausable is als
// and endtime has past, then sale has ended
} else if (pausedTime == 0 && currentTime() >= endTime) {
return true;
// otherwise it not past and not paused; or paused
// otherwise it is not past and not paused; or paused
// and as such not ended
} else {
return false;
Expand All @@ -242,7 +242,7 @@ contract TokenSale is OpsManaged, Pausable, TokenSaleConfig { // Pausable is als
function updateWhitelist(address _account, uint8 _phase) external onlyOps returns (bool) {
require(_account != address(0));
require(_phase <= 2);
require(!finalized);
require(!hasSaleEnded());

whitelist[_account] = _phase;

Expand Down

0 comments on commit e501989

Please sign in to comment.