I am doing a test ICO on rinkeby testnet and the structure I am planning will be:
1.Deployed Token contract 2.Deployed ICO contract 3.ICO contract is the owner of the Token contract 4.I am the owner of the ICO contract 5.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?