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

eip-1193 - Invalid contract call: address=.... "MetaMask: 'ethereum.send(...)' is deprecated and may be removed in the future. Please use 'ethereum.sendAsync(...)' or 'ethereum.request(...)' instead." #342

Closed
phutngo opened this issue Sep 24, 2021 · 3 comments

Comments

@phutngo
Copy link

phutngo commented Sep 24, 2021

I have a React front end that looks like it is working perfectly with my smart contract but I'm getting these warnings on page load.

MetaMask: 'ethereum.send(...)' is deprecated and may be removed in the future. Please use 'ethereum.sendAsync(...)' or 'ethereum.request(...)' instead.

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

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

For more information, see: https://eips.ethereum.org/EIPS/eip-1193

Is this an issue with useDapp? Any tips to point me ion the right direction?

@phutngo phutngo changed the title Invalid contract call: address=.... "MetaMask: 'ethereum.send(...)' is deprecated and may be removed in the future. Please use 'ethereum.sendAsync(...)' or 'ethereum.request(...)' instead." eip-1193 - Invalid contract call: address=.... "MetaMask: 'ethereum.send(...)' is deprecated and may be removed in the future. Please use 'ethereum.sendAsync(...)' or 'ethereum.request(...)' instead." Sep 26, 2021
@jhirn
Copy link

jhirn commented Oct 4, 2021

Unfortunately it's downstream in web3-react. There are several issues there regarding this matter.

@jhirn
Copy link

jhirn commented Oct 26, 2021

So i've attempted to fork and fix InjectedConnector myself but can't seem to get the dependency resolution section to resolve everything. There are actually patches for both of these which probably could/should be merged, but if I can just fork it myself I'll be good.

Uniswap/web3-react#222
Uniswap/web3-react#158

/cc @marekkirejczyk assuming you're the maintainer =)

@mj426382
Copy link
Contributor

Using Web3react with useDapp may lead to unexpected behaviour.

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

4 participants
@jhirn @phutngo @mj426382 and others