Skip to content

Instantly share code, notes, and snippets.

View umeraqeel786's full-sized avatar

Umer Aqeel umeraqeel786

View GitHub Profile
@umeraqeel786
umeraqeel786 / MyToken.sol
Created June 16, 2022 12:20 — forked from shobhitic/MyToken.sol
Merkletree Allowlist / Whitelist for NFT
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.4;
import "@openzeppelin/[email protected]/token/ERC721/ERC721.sol";
import "@openzeppelin/[email protected]/access/Ownable.sol";
import "@openzeppelin/[email protected]/utils/Counters.sol";
import "@openzeppelin/[email protected]/utils/cryptography/MerkleProof.sol";
contract MyToken is ERC721, Ownable {
using Counters for Counters.Counter;
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.3.2 (token/ERC20/ERC20.sol)
pragma solidity ^0.8.0;
import "./IERC20.sol";
import "./extensions/IERC20Metadata.sol";
import "../../utils/Context.sol";
/**