@btc-vision/walletconnect
Version:
The OP_NET Wallet Connect library helps your dApp connect to any compatible wallet.
10 lines (9 loc) • 323 B
JavaScript
import { useContext } from 'react';
import { WalletConnectContext, } from '../context/WalletConnectContext';
export const useWalletConnect = () => {
const context = useContext(WalletConnectContext);
if (!context) {
throw new Error('useCore must be used within a UserProvider');
}
return context;
};