-
Notifications
You must be signed in to change notification settings - Fork 4.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Deprecated event listener #4786
Labels
1.x
1.0 related issues
Comments
@antonio-fr thanks for mentioning it, 1.x is already handling this case. could you go ahead and open PR for removing |
antonio-fr
added a commit
to antonio-fr/web3.js
that referenced
this issue
Mar 2, 2022
and only let disconnect. Following web3#4786
antonio-fr
added a commit
to antonio-fr/web3.js
that referenced
this issue
Mar 6, 2022
and only let disconnect. Following web3#4786
jdevcs
pushed a commit
that referenced
this issue
Mar 10, 2022
16 tasks
16 tasks
jdevcs
added a commit
that referenced
this issue
Mar 17, 2022
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Is there an existing issue for this?
Current Behavior
Running web3.js with Metamask, the latter informs with a warning that the "close" may be removed in any future version.
new window.Web3(window.ethereum)
➡️
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#disconnect
Expected Behavior
Should use a current method, not a deprecated one.
Steps to Reproduce
Use dist/web3.min.js v1.7.0 in a browser with Metamask :
new window.Web3(window.ethereum)
Web3.js Version
1.7.0
Environment
Anything Else?
No response
The text was updated successfully, but these errors were encountered: