Aim: To get the name, symbol and tokenURI of another ERC721 contract from my Solidity contract. The goal is to create a one-click clone of a contract for a microprotocol.
What I've done thus far: IERC721 getTokenDetails = IERC721(_targetNFT);
- however when I call getTokenDetails.name()
I get Member "name" not found or not visible after argument-dependent lookup in contract IERC721.
- which is expected since ./IERC721.sol
on OpenZeppelin does not have name()
or symbol()
Question: How do I work around this problem?