Hello,
I import ERC721Enumerable which in turn imports ERC721. Among other things, ERC721 imports Strings.
- In order to use the ERC721() in the constructor function i have to additionally import ERC721. Why? Example: constructor() ERC721("MyContract","ABC" ) Ownable(msg.sender) {}
- In order to use the .toString method, I also need to import Strings. Why?
- Currently I am inheriting my contract from "ERC721Enumerable" and "Ownable".
When I try to additionally inherit from ERC721 and Strings, it won't compile.
Example:
- contract myContract is ERC721Enumerable, Ownable{} --> compiles
- contract myContract is ERC721Enumerable,ERC721, Ownable, Strings{}--> compiles not
Obviously, I am missing something fundamental regarding imports. Could someone please explain this to me?
Many Thanks
J