Skip to content

Instantly share code, notes, and snippets.

@IntrepidShape
Last active March 20, 2023 04:10
Show Gist options
  • Save IntrepidShape/8a66d23868d18c33baf99a600f1edca2 to your computer and use it in GitHub Desktop.
Save IntrepidShape/8a66d23868d18c33baf99a600f1edca2 to your computer and use it in GitHub Desktop.
A simple mintable NFT
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