web3modal icon indicating copy to clipboard operation
web3modal copied to clipboard

Getting series of deprecated metamask errors

Open 0x-buidl opened this issue 3 years ago • 3 comments

inpage.js:1 MetaMask: The event 'networkChanged' is deprecated and may be removed in the future. Use 'chainChanged' instead.

inpage.js:1 MetaMask: The event 'close' is deprecated and may be removed in the future. Please use 'disconnect' instead.

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

inpage.js:1 MetaMask: The event 'data' is deprecated and will be removed in the future. Use 'message' instead.

0x-buidl avatar Oct 21 '21 19:10 0x-buidl

I also faced this. Any workaround?

sawirricardo avatar Oct 30 '21 06:10 sawirricardo

We are also facing this issue with the event close.

Soletiq avatar Mar 21 '22 17:03 Soletiq

Yeah event close warning is annoying.

domalaq avatar Jul 07 '22 11:07 domalaq

With stable version 2.0.0 of Web3Modal now released, we are officially dropping support for version 1.x Due to this this issue/pr was marked for closing. It is highly recommended to upgrade as 2.x will be receiving further updates that will enable functionality for some of our newer sdks like auth and push as well as support for WalletConnect v2 (See this post about WalletConnect v1 being deprecated https://medium.com/walletconnect/walletconnect-v1-0-sunset-notice-and-migration-schedule-8af9d3720d2e)

If you need to continue using Web3Modal 1.x and require this feature/fix implemented, we suggest adding it via forking V1 branch.

xzilja avatar Jan 21 '23 16:01 xzilja