fix initializers and tests
This commit is contained in:
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
@ -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 {
|
||||
|
||||
@ -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 });
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user