Metamask gives an error about Moralis using an outdated shim

When I connect my wallet to my website using Moralis.authenticate(), I get the following warning in Metamask itself when I open it:

We noticed that the current website tried to use the removed window.web3 API. If the site appears to be broken, please click here for more information.


I also get these 3 warnings in the console at the same time:

You are accessing the MetaMask window.web3.currentProvider shim. This property is deprecated; use window.ethereum instead. For details, see:

MetaMask: The event ‘close’ is deprecated and may be removed in the future. Please use ‘disconnect’ instead.
For more information, see:

inpage.js:1 MetaMask: ‘ethereum.enable()’ is deprecated and may be removed in the future. Please use the ‘eth_requestAccounts’ RPC method instead.
For more information, see:

Are there any plans to update Moralis to not used deprecated web3 calls?

There are plans to remove those warnings.
For the first error, it could be possible that you also have used in your code window.web3 syntax.
It is not normal to see that error when you authenticate.
What version of Moralis SDK are you using?

I got the same warnings. Only using moralis SDK and a single authenticate call caused these warnings.

Yes, we know about those warnings, you also get them if you run web3 = await Moralis.enableWeb3(). We will fix it.

Hello, any news about this issue? It looks like it is not yet fixed.

can you let us know which version of Moralis SDK you used? some of those error as I remember should be gone in the latest iterations :raised_hands:

Ok, after a SDK update the problem is gone. Sorry my version was updated a month ago. :expressionless:
Thank you.