Skip to content

Commit

Permalink
passed some test
Browse files Browse the repository at this point in the history
  • Loading branch information
georgegoldman committed Oct 29, 2024
1 parent dee415c commit 65c6d14
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions src/NFT.sol
Original file line number Diff line number Diff line change
@@ -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;
}
}

0 comments on commit 65c6d14

Please sign in to comment.