Skip to content

Commit 667a371

Browse files
committed
fix: removed typing for mew
1 parent c463fec commit 667a371

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

index.d.ts

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
1-
declare module "eth-provider";
2-
declare module "@myetherwallet/mewconnect-web-client";
1+
declare module 'eth-provider';

src/layouts/WalletWidget.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import { useTheme } from '@mui/system';
1010
import makeBlockie from 'ethereum-blockies-base64';
1111
import React, { useEffect, useState } from 'react';
1212
import useGetEns from 'src/libs/hooks/use-get-ens';
13-
import { useWeb3Context } from 'src/libs/web3-data-provider';
13+
import { useWeb3Context } from 'src/libs/web3-data-provider/Web3ContextProvider';
1414
import { getNetworkConfig } from 'src/utils/marketsAndNetworksConfig';
1515

1616
import { ColorModeContext } from './MainLayout';
@@ -84,7 +84,7 @@ export default function WalletWidget() {
8484
window.open(explorerLink, '_blank');
8585
setAnchorEl(null);
8686
};
87-
87+
console.log('-------------', window.ethereum.request);
8888
return (
8989
<div>
9090
<Button

0 commit comments

Comments
 (0)