Created
January 2, 2022 10:35
-
-
Save KBPsystem777/6613c7368b9489191c13b957595cf9ec to your computer and use it in GitHub Desktop.
Targaryen NFT template
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.0; | |
import "https://github.com/nibbstack/erc721/blob/master/src/contracts/tokens/nf-token-metadata.sol"; | |
import "https://github.com/0xcert/ethereum-erc721/src/contracts/ownership/ownable.sol"; | |
contract newNFT is NFTokenMetadata, Ownable { | |
constructor() { | |
nftName = "Targaryen NFTs"; | |
nftSymbol = "TARG"; | |
} | |
function mint(address _to, uint _tokenId, string calldata _uri) external onlyOwner { | |
super._mint(_to, _tokenId); | |
super._setTokenUri(_tokenId, _uri); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment