Skip to content

Commit

Permalink
Update EIPS/eip-20.md
Browse files Browse the repository at this point in the history
Co-authored-by: Sam Wilson <57262657+SamWilsn@users.noreply.github.com>
  • Loading branch information
Pandapip1 and SamWilsn authored Mar 3, 2023
1 parent b5b06f3 commit 23e1006
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions EIPS/eip-20.md
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,9 @@ function transferFrom(address _from, address _to, uint256 _value) public returns

Allows `_spender` to withdraw from your account multiple times, up to the `_value` amount. If this function is called again it overwrites the current allowance with `_value`.

clients SHOULD make sure to create user interfaces in such a way that they set the allowance first to `0` before setting it to another value for the same spender.
THOUGH The contract itself shouldn't enforce it, to allow backwards compatibility with contracts deployed before

**NOTE**: Please read the [Security Considerations](#security-considerations) section for potential attack vectors.

``` js
Expand Down

0 comments on commit 23e1006

Please sign in to comment.