Skip to content

Lesson 11: Verifying AdvancedCollectible Contract On Etherscan #1694

Answered by Nlferu
Nlferu asked this question in Q&A
Discussion options

You must be logged in to vote

@cromewar I have found issue, but have no idea how is this even possible... as issue lays in commented code! I have located problem with AdvancedCollectible.sol in below function:

Working part of code:

    function setTokenURI(uint256 tokenId, string memory _tokenURI) public {
    // pug, shiba inu, st bernard
    require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: caller is not owner or not approved");
    _setTokenURI(tokenId, _tokenURI);
    }

Code with error FileNotFoundError: [Errno 2] No such file or directory:

   function setTokenURI(uint256 tokenId, string memory _tokenURI) public {
       // We need 3 differens tokenURI's for each breed (pug, shiba inu, st bernard) and le…

Replies: 2 comments 9 replies

Comment options

You must be logged in to vote
6 replies
@Nlferu
Comment options

@cromewar
Comment options

@Nlferu
Comment options

@cromewar
Comment options

@Nlferu
Comment options

Comment options

You must be logged in to vote
3 replies
@Nlferu
Comment options

@cromewar
Comment options

@Nlferu
Comment options

Answer selected by Nlferu
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants