---
title: "Comment by Tony on \"The 2018 guide to writing (and testing) real world crowdsale contracts\" | Hashnode"
description: "Thank you Sandeep. I found a little bit issue where after i bought every token in the PreICO, and start to buy the token in ICO, I couldn&#39;t get the token in"
url: "https://hashnode.com/posts/the-2018-guide-to-writing-and-testing-real-world-crowdsale-contracts/5a67bb65357c012503a334c9/comment/5a9644ab0430f87244d3cacd"
---

[Discussion](https://hashnode.com/posts/the-2018-guide-to-writing-and-testing-real-world-crowdsale-contracts/5a67bb65357c012503a334c9)

Comment [The 2018 guide to writing (and testing) real world crowdsale contracts](https://hashnode.com/posts/the-2018-guide-to-writing-and-testing-real-world-crowdsale-contracts/5a67bb65357c012503a334c9)

[Tony](https://hashnode.com/@Tonytl)

[Feb 28, 2018](https://hashnode.com/posts/the-2018-guide-to-writing-and-testing-real-world-crowdsale-contracts/5a67bb65357c012503a334c9/comment/5a9644ab0430f87244d3cacd)

Thank you Sandeep.

I found a little bit issue where after i bought every token in the PreICO, and start to buy the token in ICO, I couldn't get the token into my account. Does anyone know why

[Martin Blanco](https://hashnode.com/@kaptincho)

[Mar 2, 2018](https://hashnode.com/posts/the-2018-guide-to-writing-and-testing-real-world-crowdsale-contracts/5a67bb65357c012503a334c9/comment/5a9644ab0430f87244d3cacd#reply-5a9999b4e96b069606051b6b)

Only eth of the pre-ico go directly to the account, you need finish the ico to see the rest.

[Tony](https://hashnode.com/@Tonytl)

[Mar 5, 2018](https://hashnode.com/posts/the-2018-guide-to-writing-and-testing-real-world-crowdsale-contracts/5a67bb65357c012503a334c9/comment/5a9644ab0430f87244d3cacd#reply-5a9dd463e96b0696060530fe)

Hi Martin, i understand that the ether go the vault during the ICO stage, but the investors should get their token in their account, which in this code it doesn't. After the PreICO limit hit, it returns the ether directly to the investor's wallet, without going to the ICO stage. Did i miss out anything?

[Martin Blanco](https://hashnode.com/@kaptincho)

[Mar 6, 2018](https://hashnode.com/posts/the-2018-guide-to-writing-and-testing-real-world-crowdsale-contracts/5a67bb65357c012503a334c9/comment/5a9644ab0430f87244d3cacd#reply-5a9f1d1a0430f87244d401b3)

that is not written in the contract code, you must change the status of the contract manually by calling the function: "setCrowdsaleStage" to 1, using web3js and using owner account in metamask

[Shubham Constacloud](https://hashnode.com/@ShubhamCloud)

[Mar 8, 2018](https://hashnode.com/posts/the-2018-guide-to-writing-and-testing-real-world-crowdsale-contracts/5a67bb65357c012503a334c9/comment/5a9644ab0430f87244d3cacd#reply-5aa1153b0430f87244d40f55)

Hello Martin Blanco, can you please explain in details how to call contract methods in ropsten test network. I have successfully done the PreICO but now i am stuck in start the ICO.
