Skip to content

Commit

Permalink
Using the new overridable function
Browse files Browse the repository at this point in the history
  • Loading branch information
Perseverance committed Jan 3, 2018
1 parent 2f2ef68 commit 0494621
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion contracts/crowdsale/Crowdsale.sol
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 0494621

Please sign in to comment.