Last active
July 1, 2022 16:52
-
-
Save Ashar2shahid/e0cf3795a34fc03d3449330838dc7e66 to your computer and use it in GitHub Desktop.
This file contains 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.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