From fa11e1782ce181c162eabc7bc48f119154087a31 Mon Sep 17 00:00:00 2001 From: Ricardo Guilherme Schmidt <3esmit@gmail.com> Date: Sat, 30 Jun 2018 01:31:17 -0300 Subject: [PATCH] dont increment address 0 balance --- contracts/token/StandardToken.sol | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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;