Replies: 1 comment
-
require(_exists(tokenId), "URI Query for nonexistent token"); that above is only avaliable for version 4 of openzellian/contracts
/** address owner = _ownerOf(tokenId);
if (owner == address(0)) {
revert ERC721NonexistentToken(tokenId);
} @LukaNikolic96 @PatrickAlphaC @JawadLegend remeber to mark this as anwer |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.8;
import "@openzeppelin/contracts/token/ERC721/ERC721.sol";
import "@chainlink/contracts/src/v0.8/interfaces/AggregatorV3Interface.sol";
import "base64-sol/base64.sol";
contract DynamicSvgNft is ERC721 {
uint256 private s_tokenCounter;
string private i_lowImageURI;
string private i_highImageURI;
string private constant base64EncodedSvgPrefix = "data:image/svg+xml;base64,";
}
Beta Was this translation helpful? Give feedback.
All reactions