Ver Fonte

Remove extraneous quantity check, fixes #1454 (#1455)

William Entriken há 7 anos atrás
pai
commit
83bc045a56
1 ficheiros alterados com 0 adições e 2 exclusões
  1. 0 2
      contracts/token/ERC20/ERC20.sol

+ 0 - 2
contracts/token/ERC20/ERC20.sol

@@ -197,8 +197,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(