Commit 998c72ab by Francisco Giordano Committed by Martín Triay

add preconditions to constructor

parent 00f323d1
...@@ -31,6 +31,10 @@ contract TokenVesting is Ownable { ...@@ -31,6 +31,10 @@ contract TokenVesting is Ownable {
* @param _end timestamp of the moment when all balance will have been vested * @param _end timestamp of the moment when all balance will have been vested
*/ */
function TokenVesting(address _beneficiary, uint256 _cliff, uint256 _end) { function TokenVesting(address _beneficiary, uint256 _cliff, uint256 _end) {
require(_beneficiary != 0x0);
require(_cliff > now);
require(_end > _cliff);
beneficiary = _beneficiary; beneficiary = _beneficiary;
cliff = _cliff; cliff = _cliff;
end = _end; end = _end;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment