Skip to content

Instantly share code, notes, and snippets.

@Ashar2shahid
Last active July 1, 2022 16:52
Show Gist options
  • Save Ashar2shahid/e0cf3795a34fc03d3449330838dc7e66 to your computer and use it in GitHub Desktop.
Save Ashar2shahid/e0cf3795a34fc03d3449330838dc7e66 to your computer and use it in GitHub Desktop.
//SPDX-License-Identifier: MIT
pragma solidity 0.8.14;
import "@openzeppelin/contracts/token/ERC721/ERC721.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
contract DemoNFT is Ownable, ERC721 {
constructor() ERC721("Demo Day", "DD") {}
uint256 public index;
function mintNFT() public {
_safeMint(msg.sender, index);
index++;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment