truffle-box / react-box

Truffle, Webpack and React boilerplate.
https://truffle-box.github.io/
MIT License
736 stars 251 forks source link

getWeb3.js ethereum.enable() is deprecated #165

Closed lritter79 closed 2 years ago

lritter79 commented 2 years ago

getWeb3.js has "ethereum.enable()" on line 12. According to the docs, it is deprecated and should be replaced with"ethereum.request({ method: 'eth_requestAccounts' })"

beakerfm commented 2 years ago

PR opened here for the change: https://github.com/truffle-box/react-box/pull/171

cliffoo commented 2 years ago

Hey @lritter79, thanks for opening this issue! This is now fixed in the latest version.