Skip to content

Instantly share code, notes, and snippets.

@tinchoabbate
Created July 2, 2019 22:54
Show Gist options
  • Save tinchoabbate/dfa05429288fe498bb06e437a6908081 to your computer and use it in GitHub Desktop.
Save tinchoabbate/dfa05429288fe498bb06e437a6908081 to your computer and use it in GitHub Desktop.
Burnable Token
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