Skip to content

Commit

Permalink
remove unused
Browse files Browse the repository at this point in the history
  • Loading branch information
0xAlec committed Sep 12, 2024
1 parent d225d98 commit 02986c5
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/OnchainKitProvider.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import { createContext, useMemo } from 'react';
import { ONCHAIN_KIT_CONFIG, setOnchainKitConfig } from './OnchainKitConfig';
import { useCapabilitiesSafe } from './internal/hooks/useCapabilitiesSafe';
import { checkHashLength } from './internal/utils/checkHashLength';
import type { OnchainKitContextType, OnchainKitProviderReact } from './types';

Expand All @@ -21,7 +20,6 @@ export function OnchainKitProvider({
if (schemaId && !checkHashLength(schemaId, 64)) {
throw Error('EAS schemaId must be 64 characters prefixed with "0x"');
}
const walletCapabilities = useCapabilitiesSafe({ chainId: chain.id });

const value = useMemo(() => {
const onchainKitConfig = {
Expand All @@ -33,7 +31,7 @@ export function OnchainKitProvider({
};
setOnchainKitConfig(onchainKitConfig);
return onchainKitConfig;
}, [address, apiKey, chain, rpcUrl, schemaId, walletCapabilities]);
}, [address, apiKey, chain, rpcUrl, schemaId]);
return (
<OnchainKitContext.Provider value={value}>
{children}
Expand Down

0 comments on commit 02986c5

Please sign in to comment.