|
@@ -8,13 +8,13 @@ import './StandardToken.sol';
|
|
|
*/
|
|
|
contract BurnableToken is StandardToken {
|
|
|
|
|
|
+ event Burn(address indexed burner, uint256 value);
|
|
|
+
|
|
|
/**
|
|
|
* @dev Burns a specific amount of tokens.
|
|
|
* @param _value The amount of token to be burned.
|
|
|
*/
|
|
|
- function burn(uint _value)
|
|
|
- public
|
|
|
- {
|
|
|
+ function burn(uint256 _value) public {
|
|
|
require(_value > 0);
|
|
|
|
|
|
address burner = msg.sender;
|
|
@@ -22,6 +22,4 @@ contract BurnableToken is StandardToken {
|
|
|
totalSupply = totalSupply.sub(_value);
|
|
|
Burn(burner, _value);
|
|
|
}
|
|
|
-
|
|
|
- event Burn(address indexed burner, uint256 value);
|
|
|
}
|