pragma solidity 0.4.24; contract Crowdsale { bool icoCompleted; uint public icoStartTime; uint public icoEndTime; uint public tokenRate; uint public tokenAddress; uint public fundingGoal; modifier whenICOCompleted { require(icoCompleted); _; } constructor (uint _icoStart, uint _icoEnd, uint _tokenRate, address _tokenAddress, uint _fundingGoal) public { require (_icoStart != 0 && _icoEnd != 0 && _icoStart < _icoEnd && _tokenRate != 0 && _tokenAddress != address(0) && _fundingGoal != 0); icoStart = _icoStart } function () public payable { buy(); } function buy() public payable { } function extractEther() public whenIcoCompleted { } }
0.4.24