Skip to content
This repository has been archived by the owner on Mar 11, 2024. It is now read-only.

Does not work with latest open Zeppelin for Solidity ^0.5.0 #18

Open
nickjuntilla opened this issue Jun 28, 2019 · 0 comments
Open

Does not work with latest open Zeppelin for Solidity ^0.5.0 #18

nickjuntilla opened this issue Jun 28, 2019 · 0 comments

Comments

@nickjuntilla
Copy link

nickjuntilla commented Jun 28, 2019

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!

# for free to subscribe to this conversation on GitHub. Already have an account? #.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant