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