I am doing a test ICO on rinkeby testnet and the structure I am planning will be:
- Deployed Token contract
- Deployed ICO contract
- ICO contract is the owner of the Token contract
- I am the owner of the ICO contract
- When the test user will send ether to ICO contract, ICO contract will trigger a function and send the test investor tokens from the Token contract.
The problem I am facing is that I don't know how to make the TOKEN contract the owner of the totalSupply tokens. What should the exact line of code be?
balance[X] = totalSupply; where X is deployed contract address? What should i write instead of X to make deployed contract the owner of all tokens?