add preconditions to constructor
This commit is contained in:
committed by
Martín Triay
parent
00f323d132
commit
998c72ab5b
@ -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;
|
||||
|
||||
Reference in New Issue
Block a user