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

@ -6,6 +6,6 @@ import "../token/ERC20/DetailedERC20.sol";
contract DetailedERC20Mock is StandardToken, DetailedERC20 {
function DetailedERC20Mock(string _name, string _symbol, uint8 _decimals) public {
DetailedERC20.initialize(_name, _symbol, _decimals);
DetailedERC20.initialize(msg.sender, _name, _symbol, _decimals);
}
}

View File

@ -10,7 +10,7 @@ import "../token/ERC721/ERC721Token.sol";
*/
contract ERC721TokenMock is ERC721Token {
function ERC721TokenMock(string name, string symbol) public {
ERC721Token.initialize(name, symbol);
ERC721Token.initialize(msg.sender, name, symbol);
}
function mint(address _to, uint256 _tokenId) public {

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 });
});