---
title: "Green Monster (@GMCC) | Hashnode"
description: "Green Monster (@GMCC) writes on Hashnode. Read their latest articles and follow their work."
url: "https://hashnode.com/@GMCC"
---

@GMCC

# Green Monster

@GMCC · Joined February 2018

## Comments

[Also, for anyone else trying out this tutorial but are using the latest version of zeppelin-solidity, I have found the following changes helpful. (1) In HashnodeToken.sol change the filepath to include the ERC20 folder import 'zeppelin-solidity/contracts/token/ERC20/MintableToken.sol'; (2) If you are unable to deploy the contract because of a gas issue, try updating the gas amount in truffle.js to reflect the limit in ganache. "gas: 6721974" Hope this helps someone!](https://hashnode.com/posts/the-2018-guide-to-writing-and-testing-real-world-crowdsale-contracts/5a67bb65357c012503a334c9/comment/5a72a8459cc7099e7dbf35ec)

Comment · Article · Feb 1, 2018 · 3 · [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)

[First of all, thank you very much for this tutorial! As a beginner, I found it very educational and fairly straightforward to follow. However, there is something that I am having trouble understanding. Using the code provided, I am able to purchase 5HTs for 1ETH. Success! This is utilizing "uint8 public decimals = 18;" in HashcodeToken.sol My understanding is that each HT is divisible up to 18 decimals. From what I've read, setting uint8 "public decimals = 0; should create a token that is indivisible. However, deploying the contract with only this change creates far too many tokens! So, it seems that in HashnodeCrowdsale.sol, the token distribution needs to be changed from: uint256 public maxTokens = 100000000000000000000; to: uint256 public maxTokens = 100; for all token amounts in the contract. Is this a correct interpretation? If so, I can't seem to work out is how the "rate" should change. if (stage == CrowdsaleStage.PreICO) { setCurrentRate(5); } else if (stage == CrowdsaleStage.ICO) { setCurrentRate(2); Setting the rate to 0.1 for example returns an error and keeping the rate "as is" creates errors when running the TestCrowdsale. I've tried looking at the documentation but I can't seem to wrap my mind around it! How can I make this HashnodeToken indivisible and what effect does it have on the rate?](https://hashnode.com/posts/the-2018-guide-to-writing-and-testing-real-world-crowdsale-contracts/5a67bb65357c012503a334c9/comment/5a72a5da9cc7099e7dbf352c)

Comment · Article · Feb 1, 2018 · 2 · [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)
