mirror of https://github.com/status-im/EIPs.git
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:
parent
2eb09fcae0
commit
964104b784
|
@ -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)
|
||||
```
|
||||
|
|
Loading…
Reference in New Issue