Last active
January 5, 2022 17:13
-
-
Save buddies2705/2a2054244a7cffb420fc5ae4ae1b3c06 to your computer and use it in GitHub Desktop.
Burnable Token Example
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.4.24; | |
import "openzeppelin-solidity/contracts/token/ERC20/DetailedERC20.sol"; | |
import "openzeppelin-solidity/contracts/token/ERC20/StandardToken.sol"; | |
import "openzeppelin-solidity/contracts/token/ERC20/BurnableToken.sol"; | |
contract ExampleToken is StandardToken, DetailedERC20, BurnableToken{ | |
//We inherited the DetailedERC20 | |
constructor(string _name, string _symbol, uint8 _decimals) | |
DetailedERC20(_name, _symbol, _decimals) | |
public { | |
totalSupply_ = 10000; | |
balances[msg.sender] = 10000; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
where's the burn