I just have a quick question about addresses of contracts.
If I want to make a contract to transfere tokens, how do I get the correct addresses of the token I want?
For Exsample:
function transfer() external {
address a = address(MyToken_ERC20());
MyToken_ERC20 token = MyToken_ERC20(a);
token.transfer(msg.sender, 100);
}
If I would deploy "MyToken_ERC20" two times there would be two addresses of the token right? And if yes ... how can I make sure, that I got the right address, only by hardcoding the address into my new contract?