Skip to content
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

Need to update the "eth_requestAccounts" MetaMask method call #9

Open
VladislavKokosh opened this issue May 29, 2024 · 0 comments
Open

Comments

@VladislavKokosh
Copy link

VladislavKokosh commented May 29, 2024

Problem

  1. ethereum.send() is deprecated (link)
  2. Due to the deprecated method, in case the user has Web3 security extensions installed, you may get the error "Cannot read properties of undefined (reading '0')". Apparently because they are working with the actual implementation, they change the behaviour of the send method and it gets an array of addresses at once, which doesn't have a result property.

Solution
ethereum.send() => ethereum.request()

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant