---
title: "Comment by ka eliz on \"The 2018 guide to writing (and testing) real world crowdsale contracts\" | Hashnode"
description: "Hi Sandeep, thanks for your great post. I am having problems when I try to test on Ropsten. I successfully passed Truffle test; but on truffle migrate --network"
url: "https://hashnode.com/posts/the-2018-guide-to-writing-and-testing-real-world-crowdsale-contracts/5a67bb65357c012503a334c9/comment/5a99c828e96b069606051bb7"
---

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

[ka eliz](https://hashnode.com/@kaeliz)

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

Hi Sandeep, thanks for your great post.

I am having problems when I try to test on Ropsten. I successfully passed Truffle test; but on

truffle migrate --network ropsten

I got this:

Running migration: 1\_initial\_migration.js

Deploying Migrations...

Error encountered, bailing. Network state unknown. Review successful transactions manually.

insufficient funds for gas \* price + value

I Tried to change gas value many times, but nothing happened.

Could you help me?

thanks

[Abe Rios](https://hashnode.com/@aberios)

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

I'm having the same issue deploying to TestNet. I get the message "The contract code couldn't be stored, please check your gas amount". Increasing gas doesn't seem to work, and if I increase it too much, exceed the max gas limit. Anyone find a solution this?

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

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

i figured out this issue by passing gas 4000000 and before deploy your contract please get some ether balance in your owner account using metamask ropsten test faucet, after that you will be to deploy contract without any error.
