hey guys, thanks so much for those awesome tutorials, right know i’m just learning web3 from basic html and basic .sol knowledge,and thinking seriously to be expert on academy!
and i’m having this issue now
following the steps exactly as in the tutorial to connect metamask to the dapp but i’m having this issue when i try to test the metamask login, the script call moralis server but nothing happen, my code is exactly as in the tutorial, i just noticed that something was different from tuturial and updated codes on moralis documents and i’ve tried on two ways, but nothing happen when clicking “Login”
(after min 43 https://youtu.be/jdx2H1alijQ)
console.log('hello world');
// connect to Moralis server
const serverUrl = "https://r04wwnv3tpmt.usemoralis.com:2053/server";
const appId = "7q0uIDZnlZOpqhCi2XIARlZyz2ZFPZojHJgozleY";
Moralis.start({ serverUrl, appId });
login = async () => {
await Moralis.Web3.authenticate().then(function (user) {
console.log('logged in');
console.log(Moralis.User.current());
})
}
document.querySelector('#btn-login').onclick = login;
i just tried adding web3. to this comand as in the tutorial
await Moralis.authenticate().then(function (user)
await Moralis.Web3.authenticate().then(function (user)
i tried many times and checked if the address url and ID is ok
on browser i received ‘Hello World’ console so i think the problem is connecting moralis server
thats the issues i received after minutes from js console
any idea? thank you so much! my first query, sorry if this is not the right topic