Move the sentence about Transfer event at creation

In the current file, the sentence "A token contract which creates new tokens SHOULD trigger a Transfer event with the _from address set to 0x0 when tokens are created." is part of the "transfer" method section.
This sentences is linked to the "Transfer" event, not the "transfer" method.
I suggest to move it to the appropriate "Transfer" section.
This commit is contained in:
Clément Lesaege 2017-12-05 17:33:26 +01:00 committed by GitHub
parent 2eb09fcae0
commit 964104b784
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -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
@ -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)
```