Skip to content

Commit 34a967b

Browse files
committed
remove redundant checks and clarify why
1 parent 78f4b9e commit 34a967b

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

contracts/token/ERC20/StandardToken.sol

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -187,14 +187,13 @@ contract StandardToken is ERC20 {
187187

188188
/**
189189
* @dev Internal function that burns an amount of the token of a given
190-
* account, deducting from the allowance of the transaction sender.
190+
* account, deducting from the sender's allowance for said account. Uses the
191+
* internal _burn function.
191192
* @param _account The account whose tokens will be burnt.
192193
* @param _amount The amount that will be burnt.
193194
*/
194195
function _burnFrom(address _account, uint256 _amount) internal {
195-
require(_account != 0);
196196
require(allowed[_account][msg.sender] > _amount);
197-
require(balances[_account] > _amount);
198197

199198
// Should https://github.com/OpenZeppelin/zeppelin-solidity/issues/707 be accepted,
200199
// this function needs to emit an event with the updated approval.

0 commit comments

Comments
 (0)