Skip to content

Instantly share code, notes, and snippets.

@partylikeits1983
Created June 22, 2021 00:12
Show Gist options
  • Save partylikeits1983/6ae0b2e57edad1b6a6b73f5ef4ca33b2 to your computer and use it in GitHub Desktop.
Save partylikeits1983/6ae0b2e57edad1b6a6b73f5ef4ca33b2 to your computer and use it in GitHub Desktop.
// SPDX-License-Identifier: MIT
pragma solidity 0.8.0;
import "https://github.com/0xcert/ethereum-erc721/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 = "artwork NFT";
nftSymbol = "simple_NFT";
}
function mint(address _to, uint256 _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