Hey people.. I was reading an example for an ethereum token with such functionalities as transferring and burning coins. I found the following code:
function burn(uint256 _value) public returns (bool success) {
require(balanceOf[msg.sender] >= _value); // Check if the sender has enough
balanceOf[msg.sender] -= _value; // Subtract from the sender
totalSupply -= _value; // Updates totalSupply
Burn(msg.sender, _value);
return true;
}
I understood that we take coins from sender, then take it from the total supply, but I didnt get what this line does:
Burn(msg.sender, _value);
Can someone tell me about this?