---
title: "Comment by Sebastian on \"How to build your own Ethereum based ERC20 Token and launch an ICO in next 20 minutes\" | Hashnode"
description: "Great job! I have a problem however: I have set that unitsOneEthCanBuy = 1000; In MetaMask (Eth net): when I send 1 ETH I got 10.000 of mycoin.. when I send 0.0"
url: "https://hashnode.com/posts/how-to-build-your-own-ethereum-based-erc20-token-and-launch-an-ico-in-next-20-minutes/5a38344e912627e67468a2c4/comment/5a5c7588534a2f560ab0a419"
---

[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)

[Sebastian](https://hashnode.com/@sebdn)

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

Great job! I have a problem however:

I have set that unitsOneEthCanBuy = 1000;

In MetaMask (Eth net): when I send 1 ETH I got 10.000 of mycoin.. when I send 0.001 ETH I got 0.010 - why is that?

In MyEtherWallet: when I send 0.001 ETH I got 0.1 mycoin...

Why there are differences? Morover, when I deploy the SAME contract in test net, and test it, it works properly... There are no differences in codes, only difference is that one is on real eth net, and the other in test net.

[Giorgi Dididze](https://hashnode.com/@grigola11)

[Jan 16, 2018](https://hashnode.com/posts/how-to-build-your-own-ethereum-based-erc20-token-and-launch-an-ico-in-next-20-minutes/5a38344e912627e67468a2c4/comment/5a5c7588534a2f560ab0a419#reply-5a5e0f655a2158e62b194d5f)

Hello, I used your guide and created token. I want to test if it works I ve sent some ether to my contract adress, transaction is confirmed but I did not recieved my new made tokens? why ? it needs some time to end ICO and the automatically will be send?

[Sajid](https://hashnode.com/@Sajid)

[Jan 17, 2018](https://hashnode.com/posts/how-to-build-your-own-ethereum-based-erc20-token-and-launch-an-ico-in-next-20-minutes/5a38344e912627e67468a2c4/comment/5a5c7588534a2f560ab0a419#reply-5a5f6959af83bc5d36e609f1)

facing same issue. Any help please?

[Random Experiments](https://hashnode.com/@STF)

[Jan 21, 2018](https://hashnode.com/posts/how-to-build-your-own-ethereum-based-erc20-token-and-launch-an-ico-in-next-20-minutes/5a38344e912627e67468a2c4/comment/5a5c7588534a2f560ab0a419#reply-5a6463d64a0d9fd960f53d0e)

Hi, I am doing some tests and facing problem with total supply and with option to have 100% of coin.

For example I want to create 1.000000 (million) coins and have all of of them. Also decimal places 18. What values I need change in:

```
  balances[msg.sender] = 1000000000000000000000;               // Give the creator all initial tokens. This is set to 1000 for example. If you want your initial tokens to be X and your decimal is 5, set this value to X * 100000. (CHANGE THIS)
    totalSupply = 1000000000000000000000;                        // Update total supply (1000 for example) (CHANGE THIS)
```

Thanks,

STF

[Adebamijor Adebiyi](https://hashnode.com/@Adebamijor)

[Jan 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/5a5c7588534a2f560ab0a419#reply-5a68f91dbb60a7191138e989)

please i need some clarification, i followed the steps and everything was successful to the end, BUT am seeing 0(zero tokens) in my IFTC tokens created, what could caused that please. i copied the codes i just edit the Token name and Abbreviation.

[Felipe Bueno](https://hashnode.com/@fsbueno)

[Jan 31, 2018](https://hashnode.com/posts/how-to-build-your-own-ethereum-based-erc20-token-and-launch-an-ico-in-next-20-minutes/5a38344e912627e67468a2c4/comment/5a5c7588534a2f560ab0a419#reply-5a72578bd3e3e6ca62667550)

I'm having the same problem, the contract was created correctly but when I send ETH to the contract I do not receive MYCOIN

[Kyra .O. Taylor](https://hashnode.com/@kyra)

[Feb 18, 2018](https://hashnode.com/posts/how-to-build-your-own-ethereum-based-erc20-token-and-launch-an-ico-in-next-20-minutes/5a38344e912627e67468a2c4/comment/5a5c7588534a2f560ab0a419#reply-5a89ea22473ee05c28725e22)

i have this same issue, please help. Did exactly as stated but i do not receive any token when i send eth.

[Kallejo](https://hashnode.com/@Kallejo)

[Feb 21, 2018](https://hashnode.com/posts/how-to-build-your-own-ethereum-based-erc20-token-and-launch-an-ico-in-next-20-minutes/5a38344e912627e67468a2c4/comment/5a5c7588534a2f560ab0a419#reply-5a8d3bbb473ee05c28728108)

I have the same problem, all ok but if i send 0.05 eth yo contract, this contract dont send me mys tokens... Any solution?

[AYOOLA OKUNSANYA](https://hashnode.com/@PrinceAyHashnoder)

[Oct 5, 2019](https://hashnode.com/posts/how-to-build-your-own-ethereum-based-erc20-token-and-launch-an-ico-in-next-20-minutes/5a38344e912627e67468a2c4/comment/5a5c7588534a2f560ab0a419#reply-5d98b43d4c292ed95dc5f498)

Great ....you WhatsApp contact please....I would need your expertise and consults on my community blockchain deployment project on er20 sir.... +2347086967090 Thanks.
