Created
February 15, 2024 16:42
-
-
Save Zeegaths/50d3e07416545cb9019057847322fccd to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// SPDX-License-Identifier: MIT | |
pragma solidity ^0.8.17; | |
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721URIStorage.sol"; | |
import "@openzeppelin/contracts/access/Ownable.sol"; | |
contract ZarahToken is ERC721URIStorage, Ownable { | |
constructor() ERC721("ZarahToken", "ZT") Ownable (msg.sender) {} | |
function mint ( | |
address _to, | |
uint256 _tokenId, | |
string calldata _uri | |
) external onlyOwner {_mint(_to, _tokenId); | |
_setTokenURI(_tokenId, _uri); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment