Commit 70fbc7fe by Esteban Ordano Committed by GitHub

BasicToken.sol: Remove useless check

The condition this commit removes is already implemented by the call to `safeSub`
parent ced4e2da
...@@ -14,9 +14,6 @@ contract BasicToken is ERC20Basic, SafeMath { ...@@ -14,9 +14,6 @@ contract BasicToken is ERC20Basic, SafeMath {
mapping(address => uint) balances; mapping(address => uint) balances;
function transfer(address _to, uint _value) { function transfer(address _to, uint _value) {
if (balances[msg.sender] < _value) {
throw;
}
balances[msg.sender] = safeSub(balances[msg.sender], _value); balances[msg.sender] = safeSub(balances[msg.sender], _value);
balances[_to] = safeAdd(balances[_to], _value); balances[_to] = safeAdd(balances[_to], _value);
Transfer(msg.sender, _to, _value); Transfer(msg.sender, _to, _value);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment