Moralis.start({ serverUrl, appId });
let web3;
async function init(){
let currentUser = Moralis.User.current();
if(!currentUser){
window.location.pathname = ā/index.htmlā;
}
web3 = await Moralis.enableWeb3();
let accounts = web3.currentProvider.accounts[0];
console.log(accounts)
const urlParams = new URLSearchParams(window.location.search);
const nftId = urlParams.get("nftId");
document.getElementById("token_id_input").value = nftId;
//document.getElementById("token_id_input").value = accounts[0];
}
async function mint(){
let tokenId = parseInt(document.getElementById(ātoken_id_inputā));
let address = document.getElementById(āaddress_inputā)
let amount = parseInt(document.getElementById(āamount_inputā))
}
init();