Skip to content

Commit

Permalink
Adding SimpleNFt and update forge
Browse files Browse the repository at this point in the history
  • Loading branch information
eloi010 committed Nov 2, 2023
1 parent b9c46bb commit e2e4e7a
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 1 deletion.
18 changes: 18 additions & 0 deletions contracts/mock/SimpleNFT.sol
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.15;

/* solhint-disable reason-string */

import "@openzeppelin/contracts/token/ERC721/ERC721.sol";

// A simple ERC721 contract
contract SimpleNFT is ERC721 {
uint256 public tokenId;

constructor() ERC721("SimpleNFT", "SNFT") {}

// Anyone can mint an NFT for anyone
function mint(address _to) public {
_safeMint(_to, tokenId++);
}
}
2 changes: 1 addition & 1 deletion lib/forge-std

0 comments on commit e2e4e7a

Please sign in to comment.