Is there any way at the moment that I can copy a mapping from one contract to the other?
mapping (address => uint256) public balanceOf;
function importFrom(address _from) onlyOwner {
Token s = Token(_from);
balanceOf = s.balanceOf;
}
I want to allow this feature to enable smart contract upgrades. If this is not possible, I know that it is possible to use a delegatecall from one contract to the other; but then the problem is: how do I see the interface of the contract that is being called from the Ethereum wallet? I don't want to call directly the functions in that contract, but rather through the intermediary contract that then makes the call.