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

This commit is contained in:
William Entriken
2018-11-02 06:16:35 -04:00
committed by Nicolás Venturo
parent 6363a776f7
commit 83bc045a56

View File

@ -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(