Changed constant to view and more expressive comment

This commit is contained in:
George Spasov
2018-01-05 17:30:10 +02:00
parent 7852583fde
commit 586c88802d

View File

@ -64,8 +64,8 @@ contract Crowdsale {
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);
}