Added update method

This commit is contained in:
miguelToscano 2022-11-03 01:57:09 -03:00
parent 20b5833785
commit 334f520331
1 changed files with 9 additions and 0 deletions

View File

@ -20,6 +20,11 @@ contract SitesNFTs is ERC721URIStorage, AccessControl {
_; _;
} }
modifier tokenBelongsToAddress(uint256 tokenId, address holderAddress) {
require(ownerOf(tokenId) == holderAddress, "Address doesnt own tokenId.");
_;
}
constructor(string memory name, string memory symbol) ERC721(name, symbol) { constructor(string memory name, string memory symbol) ERC721(name, symbol) {
baseURI = "data:application/json;base64,"; baseURI = "data:application/json;base64,";
_setupRole(DEFAULT_ADMIN_ROLE, msg.sender); _setupRole(DEFAULT_ADMIN_ROLE, msg.sender);
@ -34,6 +39,10 @@ contract SitesNFTs is ERC721URIStorage, AccessControl {
return newItemId; return newItemId;
} }
function updateTokenURI(address tokenHolderAddress, uint256 tokenId, string memory newTokenURI) public canMint() {
}
function supportsInterface(bytes4 interfaceId) public view virtual override(ERC721, AccessControl) returns (bool) { function supportsInterface(bytes4 interfaceId) public view virtual override(ERC721, AccessControl) returns (bool) {
return super.supportsInterface(interfaceId); return super.supportsInterface(interfaceId);
} }