question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

MetaMask deprecation messages

See original GitHub issue

I see the following MetaMask deprecation messages on the console:

MetaMask: The event 'data' is deprecated and may be removed in the future. inpage.js:1:20222
MetaMask: The event 'close' is deprecated and may be removed in the future. Please use 'disconnect' instead.
For more information, see: https://eips.ethereum.org/EIPS/eip-1193 inpage.js:1:20222
MetaMask: 'ethereum.enable()' is deprecated and may be removed in the future. Please use the 'eth_requestAccounts' RPC method instead.
For more information, see: https://eips.ethereum.org/EIPS/eip-1102 inpage.js:1:21154
MetaMask: MetaMask will soon stop reloading pages on network change.
For more information, see: https://docs.metamask.io/guide/ethereum-provider.html#ethereum-autorefreshonnetworkchange 
Set 'ethereum.autoRefreshOnNetworkChange' to 'false' to silence this warning.

Issue Analytics

  • State:open
  • Created 3 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

3reactions
frangiocommented, Feb 24, 2021

Some of these warnings are still present as was explained in #201:

Yes, apparently there’s no way right now to get rid of them. They are given by the Web3. Apparently, because of backward compatibility, they decided to not remove them for the time being. You can read more about it here and here. You can still see them being used

0reactions
frangiocommented, Feb 3, 2022

The app works for me. If you see an error please share the error. If you have other information please share a link.

Read more comments on GitHub >

github_iconTop Results From Across the Web

MetaMask API Method Deprecation. June 2022 | by Luker Jen
MetaMask is deprecating two methods available in its API: eth_decrypt and eth_getEncryptionPublicKey. The methods will still exist in the API, ...
Read more >
Ethereum Provider API - MetaMask Docs
This property is non-standard, and therefore deprecated. If you need to retrieve the current chain ID, use ethereum.request({ method: ' ...
Read more >
Getting three deprication warning when connecting to metamask
MetaMask : The event 'close' is deprecated and may be removed in the future. Please use 'disconnect' instead. inpage.js:1 MetaMask: 'ethereum.
Read more >
MetaMask ar Twitter: " Heads up - Twitter
Heads up - MetaMask is deprecating two methods available in its API: eth_decrypt and eth_getEncryptionPublicKey. The methods remain in the API and will ......
Read more >
What is the MetaMask workaround if Web3 is deprecated
Sorry for the useless warning message. The path forward for now is to always use web3.currentProvider . The web3 global will still exist, ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found