Hello Community just read through another post about converting imports and verifying when using Github. I made the mistake of not compiling now I need to get this sorted.
I tried what was in here however could not get it to verify:
Any help would be greatly appreciated.
Environment
Deployed using remix and 0.6.12 & OpenZepplin v3.2.0
Details
Trying to flatten using truffle like in the post but threw Multiple SPX errors after removing got this:
myc:2103:1: DeclarationError: Identifier already declared.
contract ERC721 is Context, ERC165, IERC721, IERC721Metadata, IERC721Enumerable {
^ (Relevant source part starts here and spans across multiple lines).
myc:1628:1: The previous declaration is here:
contract ERC721 is Context, ERC165, IERC721, IERC721Metadata, IERC721Enumerable {
^ (Relevant source part starts here and spans across multiple lines).
myc:2271:25: TypeError: Cannot call function via contract type name.
address owner = ERC721.ownerOf(tokenId)
^---------------------^
Code to reproduce
I converted imports to these :
import "@openzeppelin/contracts/access/AccessControl.sol";
import "@openzeppelin/contracts/GSN/Context.sol";
import "@openzeppelin/contracts/utils/Counters.sol";
import "@openzeppelin/contracts/token/ERC721/ERC721.sol";
import "@openzeppelin/contracts/token/ERC721/ERC721Burnable.sol";