UNPKG

minauth-erc721-timelock-plugin

Version:

This package contains an implementation of a MinAuth plugin that combines zero-knowledge Merkle "membership" proofs with the ability to register into to a Merkle tree with locking an Ethereum NFT.

22 lines 545 B
"use strict"; // for later const Web3 = require('web3'); let web3; if (window.ethereum) { web3 = new Web3(window.ethereum); try { // Request account access if needed await window.ethereum.enable(); } catch (error) { console.error('User denied account access'); } } else if (window.web3) { // Legacy dapp browsers... web3 = new Web3(window.web3.currentProvider); } else { console.log('Non-Ethereum browser detected. You should consider trying MetaMask!'); } //# sourceMappingURL=temp.js.map