We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e906885 commit 98f672bCopy full SHA for 98f672b
contracts/token/StandardToken.sol
@@ -44,13 +44,6 @@ contract StandardToken is ERC20, BasicToken {
44
* @param _value The amount of tokens to be spent.
45
*/
46
function approve(address _spender, uint256 _value) public returns (bool) {
47
-
48
- // To change the approve amount you first have to reduce the addresses`
49
- // allowance to zero by calling `approve(_spender, 0)` if it is not
50
- // already 0 to mitigate the race condition described here:
51
- // https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729
52
- // require((_value == 0) || (allowed[msg.sender][_spender] == 0));
53
54
allowed[msg.sender][_spender] = _value;
55
Approval(msg.sender, _spender, _value);
56
return true;
0 commit comments