---
title: "Comment by Igor Yalovoy on \"How to build your own Ethereum based ERC20 Token and launch an ICO in next 20 minutes\" | Hashnode"
description: "ERC20 explicitly says: Note Transfers of 0 values MUST be treated as normal transfers and fire the Transfer event. Yet, your code return false on 0 and do not c"
url: "https://hashnode.com/posts/how-to-build-your-own-ethereum-based-erc20-token-and-launch-an-ico-in-next-20-minutes/5a38344e912627e67468a2c4/comment/5b06a7bac858ca69643a87c7"
---

[Discussion](https://hashnode.com/posts/how-to-build-your-own-ethereum-based-erc20-token-and-launch-an-ico-in-next-20-minutes/5a38344e912627e67468a2c4)

Comment [How to build your own Ethereum based ERC20 Token and launch an ICO in next 20 minutes](https://hashnode.com/posts/how-to-build-your-own-ethereum-based-erc20-token-and-launch-an-ico-in-next-20-minutes/5a38344e912627e67468a2c4)

[Igor Yalovoy](https://hashnode.com/@ylv)

[May 24, 2018](https://hashnode.com/posts/how-to-build-your-own-ethereum-based-erc20-token-and-launch-an-ico-in-next-20-minutes/5a38344e912627e67468a2c4/comment/5b06a7bac858ca69643a87c7)

[ERC20](https://github.com/ethereum/EIPs/blob/master/EIPS/eip-20.md) explicitly says:

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

Yet, your code return false on 0 and do not call Transfer event.

```
if (balances[_from] >= _value && allowed[_from][msg.sender] >= _value && _value > 0) {
```

I guess, it is not fully ERC20 compatible then.
