diff --git a/contracts/token/StandardToken.sol b/contracts/token/StandardToken.sol index eed7101..2f4ede8 100644 --- a/contracts/token/StandardToken.sol +++ b/contracts/token/StandardToken.sol @@ -92,9 +92,10 @@ contract StandardToken is ERC20Token { { if (balances[_from] >= _value && _value > 0) { balances[_from] -= _value; - balances[_to] += _value; if(_to == address(0)) { supply -= _value; + } else { + balances[_to] += _value; } emit Transfer(_from, _to, _value); return true;