Could you please leave a link to the timestamp in the video where this error occurs? (You can right click a video and "copy video URL at current time")
I am facing an issue regarding the deployment of the Lesson 14 DynamicSvgNft.sol contract.
It seams like the override function tokenURI() is not working properly. When a tokenId = 0 is passed as a parameter (when called from the local nodes or when it's deployed on the Goerli testnest, the function is reverted with the custom error.
Here 's a screenshot of the console below.
`// SPDX-License-Identifier: MIT
pragma solidity ^0.8.8;
Lesson
Lesson 14
Could you please leave a link to the timestamp in the video where this error occurs? (You can right click a video and "copy video URL at current time")
https://youtu.be/gyMwXuJrbJQ?t=84834
Operating System
macOS (Apple Silicon)
Describe the bug
Hello guys,
I am facing an issue regarding the deployment of the Lesson 14 DynamicSvgNft.sol contract. It seams like the override function tokenURI() is not working properly. When a tokenId = 0 is passed as a parameter (when called from the local nodes or when it's deployed on the Goerli testnest, the function is reverted with the custom error. Here 's a screenshot of the console below.
`// SPDX-License-Identifier: MIT pragma solidity ^0.8.8;
import "@openzeppelin/contracts/token/ERC721/ERC721.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "base64-sol/base64.sol"; import "@chainlink/contracts/src/v0.8/interfaces/AggregatorV3Interface.sol"; import "hardhat/console.sol";
error DynamicSVGNFT__UnexistenceTokenId();
contract DynamicSVGNFT is ERC721, Ownable { // mint nft // store our SVG on the blockchain // logic to show X or Y image
If you guys have an idea on when I should look for this kind of error. Thank you ! Nicolas