File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -187,14 +187,13 @@ contract StandardToken is ERC20 {
187
187
188
188
/**
189
189
* @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.
191
192
* @param _account The account whose tokens will be burnt.
192
193
* @param _amount The amount that will be burnt.
193
194
*/
194
195
function _burnFrom (address _account , uint256 _amount ) internal {
195
- require (_account != 0 );
196
196
require (allowed[_account][msg .sender ] > _amount);
197
- require (balances[_account] > _amount);
198
197
199
198
// Should https://github.com/OpenZeppelin/zeppelin-solidity/issues/707 be accepted,
200
199
// this function needs to emit an event with the updated approval.
You can’t perform that action at this time.
0 commit comments