Skip to content

Commit

Permalink
Remove extraneous quantity check, fixes OpenZeppelin#1454
Browse files Browse the repository at this point in the history
  • Loading branch information
fulldecent authored Oct 20, 2018
1 parent 80458eb commit cc5d212
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions contracts/token/ERC20/ERC20.sol
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,6 @@ contract ERC20 is IERC20 {
*/
function _burn(address account, uint256 value) internal {
require(account != 0);
require(value <= _balances[account]);

_totalSupply = _totalSupply.sub(value);
_balances[account] = _balances[account].sub(value);
Expand All @@ -200,8 +199,6 @@ contract ERC20 is IERC20 {
* @param value The amount that will be burnt.
*/
function _burnFrom(address account, uint256 value) internal {
require(value <= _allowed[account][msg.sender]);

// Should https://github.com/OpenZeppelin/zeppelin-solidity/issues/707 be accepted,
// this function needs to emit an event with the updated approval.
_allowed[account][msg.sender] = _allowed[account][msg.sender].sub(
Expand Down

0 comments on commit cc5d212

Please sign in to comment.