Skip to content

Instantly share code, notes, and snippets.

@peduarte
Created May 24, 2022 19:45
Show Gist options
  • Star 5 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save peduarte/b48fbf6ff35de431207d68250679a05b to your computer and use it in GitHub Desktop.
Save peduarte/b48fbf6ff35de431207d68250679a05b to your computer and use it in GitHub Desktop.
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.4;
import "@openzeppelin/contracts@4.6.0/token/ERC1155/ERC1155.sol";
import "@openzeppelin/contracts@4.6.0/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