augur icon indicating copy to clipboard operation
augur copied to clipboard

Don't use `ethereum.send`, use `ethereum.request`

Open MicahZoltu opened this issue 5 years ago • 1 comments

Describe the bug If you use a new version of MetaMask, you'll see the following warning in the browser console:

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

To Reproduce Steps to reproduce the behavior:

  1. Install Firefox.
  2. Install MetaMask.
  3. Sign-in to MetaMask.
  4. Open Augur UI.
  5. Notice warning in console.

Expected behavior No warnings about using deprecated methods.

Desktop (please complete the following information):

  • OS: Windows
  • Browser: Firefox
  • Version: 78.0.2

Additional context I suspect that this is coming from whatever library you are using, and hopefully the fix is as simple as updating the library. I believe that ethers has been updated to use ethereum.sendAsync or ethereum.request, so hopefully just updating to latest will fix this issue.

MicahZoltu avatar Jul 30 '20 05:07 MicahZoltu

@andrewdamelio please take a look at this

Chwy5 avatar Mar 01 '21 18:03 Chwy5