* signing prefix added
* Minor improvement
* Tests changed
* Successfully tested
* Minor improvements
* Minor improvements
* Revert "Dangling commas are now required. (#1359)"
This reverts commit a6889776f4.
* updates
* fixes #1371
* Removed extra whitespace
28 lines
688 B
Solidity
28 lines
688 B
Solidity
pragma solidity ^0.4.24;
|
|
|
|
import "./ERC20.sol";
|
|
|
|
/**
|
|
* @title Burnable Token
|
|
* @dev Token that can be irreversibly burned (destroyed).
|
|
*/
|
|
contract ERC20Burnable is ERC20 {
|
|
|
|
/**
|
|
* @dev Burns a specific amount of tokens.
|
|
* @param value The amount of token to be burned.
|
|
*/
|
|
function burn(uint256 value) public {
|
|
_burn(msg.sender, value);
|
|
}
|
|
|
|
/**
|
|
* @dev Burns a specific amount of tokens from the target address and decrements allowance
|
|
* @param from address The address which you want to send tokens from
|
|
* @param value uint256 The amount of token to be burned
|
|
*/
|
|
function burnFrom(address from, uint256 value) public {
|
|
_burnFrom(from, value);
|
|
}
|
|
}
|