67P / kredits-web

Kredits Web UI
https://kredits.kosmos.org
6 stars 2 forks source link

Support new metamask privacy mode #87

Closed bumi closed 5 years ago

bumi commented 5 years ago

Seems the metamask privacy mode has become default. Which means we have to request access to the metamask accounts first using provider.enable()

"ATTENTION: In an effort to improve user privacy, MetaMask stopped exposing user accounts to dapps if "privacy mode" is enabled on November 2nd, 2018. Dapps should now call provider.enable() in order to view and use accounts. Please see https://medium.com/metamask/https-medium-com-metamask-breaking-change-injecting-web3-7722797916a8 for complete information and up-to-date example code"

raucao commented 5 years ago

I'm having a stab at this.