Is it possible to have a contract that both generates and manages its own NFT according to the ERC721
Standard, and is able to make calls to outside ERC20
contracts? My contract currently inherits the ERC20 interface or contract, so that it can calls an instance of ERC20
someCoin = ERCInterface(xxxxxx);
myCoin.transferFrom();
However, the approve()
and transferFrom()
functions have the exact same number and types of arguments in both standards so the ERC721 functions get overwritten. Does anyone know of a workaround? Alternatively, can someone provide an example of how a direct contract call can be written? Thanks