dap-ps / discover-v2

Discover all your favourite Distributed Applications, ranked in a provably fair and transparent way
Mozilla Public License 2.0
3 stars 0 forks source link

Change web3 connection method #7

Open andytudhope opened 3 years ago

andytudhope commented 3 years ago

While we are removing unnecessary libraries and generally cleaning up how we use Embark, let's make sure we migrate to the latest use of web3 to avoid this error message in the web console:

MetaMask no longer injects web3. For details, see: https://docs.metamask.io/guide/provider-migration.html#replacing-window-web3

It seems that MM also prefer the web3_getAccounts method over ethereum.enable() - this is worth looking further into (and can be seen in the console when you submit a DApp and are asked to connect your wallet).

Screenshot from 2021-01-18 14-55-50

cc @richard-ramos @RyRy79261