mirror of
https://github.com/status-im/EIPs.git
synced 2025-01-28 15:46:15 +00:00
Merge pull request #791 from clesaege/patch-3
Move the sentence about Transfer event at creation
This commit is contained in:
commit
4b909879a7
@ -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…
x
Reference in New Issue
Block a user