Skip to content

Instantly share code, notes, and snippets.

@buddies2705
Last active January 5, 2022 17:13
Show Gist options
  • Save buddies2705/2a2054244a7cffb420fc5ae4ae1b3c06 to your computer and use it in GitHub Desktop.
Save buddies2705/2a2054244a7cffb420fc5ae4ae1b3c06 to your computer and use it in GitHub Desktop.
Burnable Token Example
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;
}
}
@Asrail7x
Copy link

Asrail7x commented Jan 5, 2022

where's the burn

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment