Skip to content

Instantly share code, notes, and snippets.

@Zeegaths
Created February 15, 2024 16:42
Show Gist options
  • Save Zeegaths/50d3e07416545cb9019057847322fccd to your computer and use it in GitHub Desktop.
Save Zeegaths/50d3e07416545cb9019057847322fccd to your computer and use it in GitHub Desktop.
// 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