mirror of
https://github.com/status-im/contracts.git
synced 2025-02-23 03:58:42 +00:00
transfer to zero should decerease supply (burn action)
This commit is contained in:
parent
264f30ff2b
commit
8b092b421e
@ -93,6 +93,9 @@ contract StandardToken is ERC20Token {
|
||||
if (balances[_from] >= _value && _value > 0) {
|
||||
balances[_from] -= _value;
|
||||
balances[_to] += _value;
|
||||
if(_to == address(0)) {
|
||||
supply -= _value;
|
||||
}
|
||||
emit Transfer(_from, _to, _value);
|
||||
return true;
|
||||
} else {
|
||||
|
Loading…
x
Reference in New Issue
Block a user