Last active
March 20, 2023 04:10
-
-
Save IntrepidShape/8a66d23868d18c33baf99a600f1edca2 to your computer and use it in GitHub Desktop.
A simple mintable NFT
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
pragma solidity ^0.8.0; | |
import "@openzeppelin/contracts/token/ERC1155/ERC1155.sol"; | |
import "@openzeppelin/contracts/access/Ownable.sol"; | |
contract SmashTheLikeNFT is ERC1155, Ownable { | |
uint256 constant tokenID = 0; | |
constructor() ERC1155("") { | |
_mint(msg.sender, tokenID, 1, ""); | |
} | |
function mint(uint256 amount) public onlyOwner { | |
_mint(msg.sender, tokenID, amount, ""); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment