Skip to content
Permalink
Browse files

Merge pull request #4 from thanhson1085/master

some optimizations
  • Loading branch information...
thanhson1085 committed Feb 26, 2018
2 parents 9056879 + 7aa1b90 commit f33632034586241fadc79b9b3aa93282e75e53d5
Showing with 4 additions and 4 deletions.
  1. +1 −1 README.md
  2. +3 −3 contracts/TomoTokenSale.sol
@@ -13,7 +13,7 @@ Token Sale Start Time: 2018-03-01 04:00:00 GMT

Buy POC End Time: 2018-03-02 04:00:00 GMT (Buying with your Individual Cap - Tier 1,2,3)

Token Sale End Time: 2018-03:04 04:00:00 GMT (Buying with Max Cap)
Token Sale End Time: 2018-03-04 04:00:00 GMT (Buying with Max Cap)

Max Contribution: 10 ether

@@ -305,7 +305,7 @@ contract TomoContributorWhitelist is Ownable {
contract TomoTokenSale is Pausable {
using SafeMath for uint256;

TomoCoin token;
TomoCoin tomo;
TomoContributorWhitelist whitelist;
mapping(address => uint256) public participated;

@@ -334,7 +334,7 @@ contract TomoTokenSale is Pausable {
address _tomoDepositAddress
) public
{
token = TomoCoin(_tomoCoinAddress);
tomo = TomoCoin(_tomoCoinAddress);
whitelist = TomoContributorWhitelist(_tomoContributorWhitelistAddress);
ethFundDepositAddress = _ethFundDepositAddress;
tomoDepositAddress = _tomoDepositAddress;
@@ -344,7 +344,7 @@ contract TomoTokenSale is Pausable {

function buy(address to, uint256 val) internal returns (bool success) {
MintTomo(tomoDepositAddress, to, val);
return token.mint(to, val);
return tomo.mint(to, val);
}

function () public payable {

0 comments on commit f336320

Please sign in to comment.
You can’t perform that action at this time.