mirror of https://github.com/status-im/js-waku.git
Replace deprecated method
This commit is contained in:
parent
820307ef8c
commit
47a27a0969
|
@ -44,7 +44,7 @@ function App() {
|
|||
useEffect(() => {
|
||||
if (provider) return;
|
||||
try {
|
||||
window.ethereum.enable();
|
||||
window.ethereum.request({ method: 'eth_requestAccounts' });
|
||||
const _provider = new ethers.providers.Web3Provider(window.ethereum);
|
||||
setProvider(_provider);
|
||||
} catch (e) {
|
||||
|
|
Loading…
Reference in New Issue