Skip to content

Instantly share code, notes, and snippets.

View pythonpete32's full-sized avatar
🏗️
BUIDLing

Aaron Abu Usama pythonpete32

🏗️
BUIDLing
View GitHub Profile
@crazyrabbitLTC
crazyrabbitLTC / NFT Roles.sol
Last active May 19, 2023 05:16
NFT Roles description
// SPDX-License-Identifier: MIT
// by dennison@tally.xyz
pragma solidity ^0.8.0;
import "@openzeppelin/contracts/access/AccessControl.sol";
import "@openzeppelin/contracts/token/ERC1155/ERC1155.sol";
contract Roles is ERC1155, AccessControl {
// errors
error NoDuplicateRoles();
const namehash = require('eth-ens-namehash').hash
const tldName = 'conviction-experimental.open.aragonpm.eth'
const tldHash = namehash(tldName)
console.log(`Namehash: ${tldHash}`)