Skip to content

Commit

Permalink
Merge pull request #791 from clesaege/patch-3
Browse files Browse the repository at this point in the history
Move the sentence about Transfer event at creation
  • Loading branch information
pirapira authored Dec 6, 2017
2 parents 2eb09fc + 964104b commit 4b90987
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions EIPS/eip-20-token-standard.md
Original file line number Diff line number Diff line change
Expand Up @@ -96,8 +96,6 @@ function balanceOf(address _owner) constant returns (uint256 balance)
Transfers `_value` amount of tokens to address `_to`, and MUST fire the `Transfer` event.
The function SHOULD `throw` if the `_from` account balance does not have enough tokens to spend.

A token contract which creates new tokens SHOULD trigger a Transfer event with the `_from` address set to `0x0` when tokens are created.

*Note* Transfers of 0 values MUST be treated as normal transfers and fire the `Transfer` event.

``` js
Expand Down Expand Up @@ -152,6 +150,8 @@ function allowance(address _owner, address _spender) constant returns (uint256 r

MUST trigger when tokens are transferred, including zero value transfers.

A token contract which creates new tokens SHOULD trigger a Transfer event with the `_from` address set to `0x0` when tokens are created.

``` js
event Transfer(address indexed _from, address indexed _to, uint256 _value)
```
Expand Down

0 comments on commit 4b90987

Please sign in to comment.