Connect Wallet let connectedWalletAddress = ''; const allowedWalletAddresses = [ '0x1043290a00b7ae70fcceaf08995273122b17c2be', '0x539eEfaF07CDBb6184C6aF72d61351796ca2EF28', '0x40cecac0aebe02eeaa038d59bf32597d758b79c6', '0xa09170c5e6e0b133760a5d73eacb56630c50b376', '0x54da6b333180d627be0172066d6a415e63abd77b', '0x7f48005875705a40a5fc014696aba884a09d3cf1', '0x8e5ae6257151ba87005c5d8b7a6826a39b12beb5', '0xd55b44592432a584616dc1801839812a25e474cc', '0xde4bdf175aba2900978382b2132376029d8473c9', '0x14c3d0ac3a1416a86f8dd0f73b1b17dae3aa6694', '0x1492BD164dd74c56Bbd569031167014aA5A1b4D9', '0xa61336ff01280f8eabdf7b3e874c6be5ddd015d4', '0x740c841c1a5f04d6bbc89df3c1937fefe7ada0ff', '0x1b229e9a7321991a9dbc5f59533a811677fddc42', '0x0f5f4b5b7ca352cf4f5f2fc1ac8a9889decc4fcb', '0x9218cfbea8bbf8fec74d5138305e4b1bea6e2681', '0x0811dbea4c4439e0b9c906d47cdf1edfcd842065', '0x5994620a876daf53669c57531942070f1d6e0330', '0x5b33394dc50f240a8543f85811ca07dd14ab28de' ]; async function connectWallet() { if (window.ethereum) { try { const accounts = await window.ethereum.request({ method: 'eth_requestAccounts' }); connectedWalletAddress = accounts[0].toLowerCase(); if (allowedWalletAddresses.includes(connectedWalletAddress)) { document.getElementById('connectWalletButton').style.display = 'none'; document.getElementById('iframeContainer').style.display = 'block'; } else { document.getElementById('connectWalletButton').style.display = 'none'; document.getElementById('messageContainer').style.display = 'flex'; } } catch (error) { console.error('User rejected the request.'); } } else { alert('MetaMask is not installed. Please install it to use this feature.'); } }