mirror of https://github.com/status-im/js-waku.git
Fix for metamask
This commit is contained in:
parent
fc987f8f58
commit
ddf6a9501a
|
@ -30,6 +30,7 @@ function App() {
|
|||
useEffect(() => {
|
||||
if (provider) return;
|
||||
try {
|
||||
window.ethereum.enable();
|
||||
const _provider = new ethers.providers.Web3Provider(window.ethereum);
|
||||
setProvider(_provider);
|
||||
} catch (e) {
|
||||
|
|
Loading…
Reference in New Issue