Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
harpy-wings committed Sep 24, 2023
1 parent 6558813 commit 10a40aa
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions contracts/ICO.sol
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ contract ICO is SuperAdmin {
uint256 comStartVol;
}


// Token is the token sell in ICO
address public token;

Expand Down Expand Up @@ -125,7 +124,10 @@ contract ICO is SuperAdmin {
require(_success,"transfering Token failed");
return true;
}


function buy_signaureData(address _from, uint256 _amount, uint256 _exp) public view returns (bytes32) {
return keccak256(abi.encodePacked(address(this),_from, _amount, _exp));
}
// ─── Utils ───────────────────────────────────────────────────────────
function mybalance(address _contract) internal returns (uint256) {
(bool _success,bytes memory _data ) = _contract.call(abi.encodeWithSelector(_balanceOfSelector,address(this)));
Expand Down

0 comments on commit 10a40aa

Please sign in to comment.