---
title: "Comment by William Lim on \"How to build your own Ethereum based ERC20 Token and launch an ICO in next 20 minutes\" | Hashnode"
description: "Hi! Just wondering - given there&#39;s a way to exchange 1 ETH for xxx coin, what happens if someone sends 0.5 ETH ? would it automatically send half of xxx coi"
url: "https://hashnode.com/posts/how-to-build-your-own-ethereum-based-erc20-token-and-launch-an-ico-in-next-20-minutes/5a38344e912627e67468a2c4/comment/5a66f0304c88fdb11626da0a"
---

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

[William Lim](https://hashnode.com/@limlwl)

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

Hi! Just wondering - given there's a way to exchange 1 ETH for xxx coin, what happens if someone sends 0.5 ETH ? would it automatically send half of xxx coin?

[Sandeep Panda](https://hashnode.com/@sandeep)

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

Yes. For instance, if 1 ETH can buy 6 tokens, 0.5 ETH can buy 3 tokens.

[William Lim](https://hashnode.com/@limlwl)

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

Woohoo - tried to create a test coin and it worked. But unfortunately, sending 1 ETH didn't work when testing with two accounts. (ie: to test autosend token when receiving 1 ETH) Not sure what's wrong with it... any ideas? source code exactly the same except for # of tokens, names, decimal and put in a note.

Note: I sent 1 ETH from "my account 2" to Contract address - didn't work (as specified in tutorial)

I sent 1 ETH from "my account 2" to "My Account 1" - didn't work

[rinkeby.etherscan.io/token/0xc705e325395b7c27CCF0…](https://rinkeby.etherscan.io/token/0xc705e325395b7c27CCF04130D8B19E9D0fD8F278#balances)

Tested manually with just sending it using myetherwallet and it works well.

[Jimi S](https://hashnode.com/@Malauw)

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

I have the same problem. Manually through MEW works you say? How does that work? Access MEW with a test net and then send through MEW instead of Metamask?
