Created
July 2, 2019 22:54
-
-
Save tinchoabbate/dfa05429288fe498bb06e437a6908081 to your computer and use it in GitHub Desktop.
Burnable Token
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pragma solidity ^0.5.0; | |
import "openzeppelin-eth/contracts/token/ERC20/ERC20Burnable.sol"; | |
import "openzeppelin-eth/contracts/token/ERC20/ERC20Detailed.sol"; | |
import "zos-lib/contracts/Initializable.sol"; | |
contract BurnableToken is Initializable, ERC20Burnable, ERC20Detailed { | |
function initialize( | |
string memory name, | |
string memory symbol, | |
uint8 decimals, | |
uint256 initialSupply | |
) | |
public | |
initializer | |
{ | |
super.initialize(name, symbol, decimals); | |
_mint(msg.sender, initialSupply); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment