How can i make function call from one contract deployed on the blockchain to another contract seperately deployed on the blockchain to transfer ownership from the second (called) contract to a new address or contractaddress?
Hi!
So i deployed a tokencontract with the msg.sender address as the owner.
After i deployed the crowdsale contract (which needs ownership of the tokencontract to mint, burn and transact tokens) and i used the function transferOwnership() to transfer the token ownership to the crowdsale contract address.
This works, but then i need to change it back to another address, of course, it does not.
I need to have a function that directly calls the token contract address and gives as a parameter the new owner address.
How should i implement this?