From 9333fec5f1e5cf0ad60f760df3a1020b60d529f8 Mon Sep 17 00:00:00 2001 From: Yaron Velner Date: Thu, 17 Aug 2017 21:56:11 +0300 Subject: [PATCH] fix to issue 375 --- contracts/token/StandardToken.sol | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contracts/token/StandardToken.sol b/contracts/token/StandardToken.sol index 0f73c8d73..d844202a7 100644 --- a/contracts/token/StandardToken.sol +++ b/contracts/token/StandardToken.sol @@ -29,8 +29,8 @@ contract StandardToken is ERC20, BasicToken { // Check is not needed because sub(_allowance, _value) will already throw if this condition is not met // require (_value <= _allowance); - balances[_to] = balances[_to].add(_value); balances[_from] = balances[_from].sub(_value); + balances[_to] = balances[_to].add(_value); allowed[_from][msg.sender] = _allowance.sub(_value); Transfer(_from, _to, _value); return true;