Hi, could I get some help with this, please?
I tried to use the Moralis.onWeb3Enabled() event listener
// Subscribe to onWeb3Enabled events
const unsubscribe = Moralis.onWeb3Enabled((result) => {
console.log(result);
});
// Unsubscribe to onWeb3Enabled events
unsubscribe();
but I get this result instead when I call unsubscribe()
I do not get the account, chain, etc. like in the docs
{ account: "0x1a2b3c4d....", chain: "0x1", ...
Btw just wondering, why is it called unsubscribe? is it not supposed to subscribe to an event?