How to store contract address as variable?
I need someway to store mapping of uint256 => contract address. Can I just use the address type?
I need a functions that calls transfer method of the contract address stored.
mapping(uint256=>address)public contractAddress;
function transfer(address _contractAddress, uint256 _amount, address _from, address _to) { // Somehow call transfer of contract at address contractAddress }
transfer(contractAddress[1], 1000000, 0xa53…., 0x37…);
submitted by /u/BoganLord2169
[link] [comments]