Created
May 24, 2022 19:45
-
-
Save peduarte/b48fbf6ff35de431207d68250679a05b to your computer and use it in GitHub Desktop.
Solidity Demo Contract for https://github.com/peduarte/rainbowkit-mint-nft-demo
This file contains hidden or 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
// SPDX-License-Identifier: MIT | |
pragma solidity ^0.8.4; | |
import "@openzeppelin/[email protected]/token/ERC1155/ERC1155.sol"; | |
import "@openzeppelin/[email protected]/access/Ownable.sol"; | |
contract RainbowKitNFT is ERC1155, Ownable { | |
uint256 public totalSupply; | |
constructor() ERC1155("https://rainbowkit-mint-nft-demo.vercel.app/nft.json") {} | |
function mint() public { | |
unchecked { | |
++totalSupply; | |
} | |
_mint(msg.sender, 1, 1, ""); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment