Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
add preconditions to constructor
  • Loading branch information
frangio committed Aug 28, 2017
commit 0b09686ac30e2b6a26b8a4b885544c9feee575cc
4 changes: 4 additions & 0 deletions contracts/token/TokenVesting.sol
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,10 @@ contract TokenVesting is Ownable {
* @param _end timestamp of the moment when all balance will have been vested
*/
function TokenVesting(address _beneficiary, uint256 _cliff, uint256 _end) {
require(_beneficiary != 0x0);
require(_cliff > now);
require(_end > _cliff);

beneficiary = _beneficiary;
cliff = _cliff;
end = _end;
Expand Down