This repository was archived by the owner on Mar 11, 2024. It is now read-only.

Description
To make it work with new libraries the token code has to look more like this:
import "../node_modules/openzeppelin-solidity/contracts/token/ERC20/ERC20.sol";
import "../node_modules/openzeppelin-solidity/contracts/token/ERC20/ERC20Detailed.sol";
contract TestToken is ERC20Detailed, ERC20 {
constructor(
string memory _name,
string memory _symbol,
uint8 _decimals,
uint256 _amount
)
ERC20Detailed(_name, _symbol, _decimals)
public
{
_mint(msg.sender, _amount);
}
}
and the deploy code like this:
module.exports = function(deployer) {
deployer.deploy(TestToken, "Test Token", "TEST", 18, 100000000000000000000000);
}
Hope this helps someone else!