Getting three deprication warning when connecting to metamask

I’m getting three warnings when connecting to Metamask and am looking for guidance on how to resolve these errors. The three errors I’m getting are:

  • You are accessing the MetaMask window.web3.currentProvider shim. This property is deprecated; use window.ethereum instead.

  • MetaMask: The event ‘close’ is deprecated and may be removed in the future. Please use ‘disconnect’ instead.

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

Are these errors something that Moralis has already addressed?

1 Like

Hi @kenmarold

Soon the SDK will be redesigned for new web3 methods. Now it doesn’t affect the work of web3 functions in any way. Because metamask still supports “deprecated” methods. So you can ignore these messages

1 Like