From 964104b784be58cd61592edb4516809c373fdfc7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Lesaege?= Date: Tue, 5 Dec 2017 17:33:26 +0100 Subject: [PATCH] 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. --- EIPS/eip-20-token-standard.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/EIPS/eip-20-token-standard.md b/EIPS/eip-20-token-standard.md index 4b209dcd..05ad25d7 100644 --- a/EIPS/eip-20-token-standard.md +++ b/EIPS/eip-20-token-standard.md @@ -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) ```