fix initializers and tests

This commit is contained in:
Francisco Giordano
2018-04-20 12:14:25 -03:00
parent 2eac2a79b7
commit b1a801566c
3 changed files with 3 additions and 3 deletions

View File

@ -19,7 +19,7 @@ contract('TokenTimelock', function ([_, owner, beneficiary]) {
await this.token.initialize(owner);
this.releaseTime = latestTime() + duration.years(1);
this.timelock = await TokenTimelock.new();
await this.timelock.initialize(this.token.address, beneficiary, this.releaseTime);
await this.timelock.initialize(owner, this.token.address, beneficiary, this.releaseTime);
await this.token.mint(this.timelock.address, amount, { from: owner });
});