Skip to content

Commit

Permalink
fix: forgot to comment out web3modal
Browse files Browse the repository at this point in the history
  • Loading branch information
L03TJ3 committed Dec 14, 2023
1 parent 761222b commit eb83116
Showing 1 changed file with 15 additions and 15 deletions.
30 changes: 15 additions & 15 deletions packages/app/src/hooks/useWeb3Modal.tsx
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
import { useState, useEffect } from 'react';
import { EthereumProvider } from '@walletconnect/ethereum-provider';
import { IEthereumProvider } from '@walletconnect/ethereum-provider/dist/types/EthereumProvider';
const projectId = '2d923a8a66e396445ba00cd8b882450b';
// import { useState, useEffect } from 'react';
// import { EthereumProvider } from '@walletconnect/ethereum-provider';
// import { IEthereumProvider } from '@walletconnect/ethereum-provider/dist/types/EthereumProvider';
// const projectId = '2d923a8a66e396445ba00cd8b882450b';

export const useWeb3Modal = () => {
const [provider, setProvider] = useState<IEthereumProvider>();
// export const useWeb3Modal = () => {
// const [provider, setProvider] = useState<IEthereumProvider>();

useEffect(() => {
EthereumProvider.init({
projectId, // REQUIRED your projectId
chains: [122, 42220], // REQUIRED chain ids
showQrModal: true, // REQUIRED set to "true" to use @walletconnect/modal
}).then((_) => setProvider(_));
}, []);
// useEffect(() => {
// EthereumProvider.init({
// projectId, // REQUIRED your projectId
// chains: [122, 42220], // REQUIRED chain ids
// showQrModal: true, // REQUIRED set to "true" to use @walletconnect/modal
// }).then((_) => setProvider(_));
// }, []);

return provider;
};
// return provider;
// };

0 comments on commit eb83116

Please sign in to comment.