Browse Source

Using the new overridable function

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

+ 1 - 1
contracts/crowdsale/Crowdsale.sol

@@ -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);