Skip to content

Commit 196cfaf

Browse files
committed
removing comment for changing allowance to 0
1 parent 80b55ea commit 196cfaf

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

contracts/SRTToken.sol

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -77,10 +77,6 @@ contract StandardToken is ERC20 {
7777
* @param _value The amount of tokens to be spent.
7878
*/
7979
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
8480
require(allowed[msg.sender][_spender] == 0);
8581
allowed[msg.sender][_spender] = _value;
8682
Approval(msg.sender, _spender, _value);

0 commit comments

Comments
 (0)