Skip to content

Commit

Permalink
removed 10s variable
Browse files Browse the repository at this point in the history
  • Loading branch information
stanacton committed Oct 13, 2017
1 parent d8a19fb commit a831643
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/dapp/public/address.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"PreICO":{"address":"0x0e90857f1ef907fc0c1caaba1878d78b39c68300"}}
{"PreICO":{"address":"0x2e1b29b9fed2f02b3919ee2b1e3f1e268b381278"}}
3 changes: 1 addition & 2 deletions src/truffle/contracts/PreICO.sol
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,7 @@ contract PreICO is WhitelistPauseableToken {
}

function calculateTokens(uint eth) constant returns (uint) {
uint ten = 10;
uint tens = ten ** (decimals);
uint tens = uint(10) ** (decimals);
return SafeMath.mul(eth, tens) / _price;
}

Expand Down

0 comments on commit a831643

Please sign in to comment.