---
title: "Comment by brian on \"The 2018 guide to writing (and testing) real world crowdsale contracts\" | Hashnode"
description: "Great write up, works perfectly. Well done! What is involved in getting this to mainnet, just changing the network?"
url: "https://hashnode.com/posts/the-2018-guide-to-writing-and-testing-real-world-crowdsale-contracts/5a67bb65357c012503a334c9/comment/5a7da0192c654c204774a017"
---

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

[brian](https://hashnode.com/@brian1)

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

Great write up, works perfectly. Well done! What is involved in getting this to mainnet, just changing the network?

[Kudakwashe Murungu](https://hashnode.com/@cryptozw)

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

Hi, Thanks for this great article, I'm trying to get an ico smart contract up and running just to have a grasp of whats involved and how this whole things work. Where do I run that code >> mkdir HashnodeCrowdsale && cd HashnodeCrowdsale

Or where do I get my workspace rather. I downloaded and installed Ganache successfully and all the prerequisites

[Anwar Shaikh](https://hashnode.com/@anwarsquarebiz)

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

If you are facing problem at step where you need to run truffle test in Windows cmd, then use power shell in windows it will let you run the test. As cmd open the file truffle.js in editor but power shell will run the code in truffle.js. If you want to know where to look for power shell refer this - [docs.microsoft.com/en-us/powershell/scripting/set…](https://docs.microsoft.com/en-us/powershell/scripting/setup/installing-windows-powershell?view=powershell-6)

[Anwar Shaikh](https://hashnode.com/@anwarsquarebiz)

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

Can you please have a tutorial on web3.js. Could not understand how to show the raised amount of eth.

[ChiragMaliwal](https://hashnode.com/@cmaliwal)

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

I am also looking for the same.
