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 80b55ea commit 196cfafCopy full SHA for 196cfaf
contracts/SRTToken.sol
@@ -77,10 +77,6 @@ contract StandardToken is ERC20 {
77
* @param _value The amount of tokens to be spent.
78
*/
79
function approve(address _spender, uint256 _value) returns (bool success) {
80
- // To change the approve amount you first have to reduce the addresses`
81
- // allowance to zero by calling `approve(_spender, 0)` if it is not
82
- // already 0 to mitigate the race condition described here:
83
- // https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729
84
require(allowed[msg.sender][_spender] == 0);
85
allowed[msg.sender][_spender] = _value;
86
Approval(msg.sender, _spender, _value);
0 commit comments