Browse Source

Changed constant to view and more expressive comment

George Spasov 7 years ago
parent
commit
586c88802d
1 changed files with 2 additions and 2 deletions
  1. 2 2
      contracts/crowdsale/Crowdsale.sol

+ 2 - 2
contracts/crowdsale/Crowdsale.sol

@@ -64,8 +64,8 @@ contract Crowdsale {
     buyTokens(msg.sender);
     buyTokens(msg.sender);
   }
   }
 
 
-  // Override this function to create logic for periodization
-  function getTokenAmount(uint256 weiAmount) internal constant returns(uint256) {
+  // Override this method to have a way to add business logic to your crowdsale when buying
+  function getTokenAmount(uint256 weiAmount) internal view returns(uint256) {
     return weiAmount.mul(rate);
     return weiAmount.mul(rate);
   }
   }