diff --git a/src/NFT.sol b/src/NFT.sol new file mode 100644 index 0000000..a85c553 --- /dev/null +++ b/src/NFT.sol @@ -0,0 +1,19 @@ +// SPDX-License-Identifier: MIT +pragma solidity ^0.8.23; + +import "@openzeppelin/contracts/token/ERC721/ERC721.sol"; + +contract NFT is ERC721 { + + uint256 public currentTokenId; + + // The following will create an ERC721 Token called Lisk. + constructor() ERC721("Lisk", "LSK") {} + + // mint function + function mint(address recipient) public payable returns (uint256) { + uint256 newItemId = ++currentTokenId; + _safeMint(recipient, newItemId); + return newItemId; + } +} \ No newline at end of file