Using the new overridable function
This commit is contained in:
@ -77,7 +77,7 @@ contract Crowdsale {
|
||||
uint256 weiAmount = msg.value;
|
||||
|
||||
// calculate token amount to be created
|
||||
uint256 tokens = weiAmount.mul(rate);
|
||||
uint256 tokens = getTokenAmount(weiAmount);
|
||||
|
||||
// update state
|
||||
weiRaised = weiRaised.add(weiAmount);
|
||||
|
||||
Reference in New Issue
Block a user