From 7ef2e156e08f0ea96c3dae83617d3977f0aa5e14 Mon Sep 17 00:00:00 2001 From: Anton Shalimov Date: Tue, 21 Jan 2025 13:16:09 +0300 Subject: [PATCH] feat: add typing to the DappChainContext --- modules/web3/web3-provider/dapp-chain.tsx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/modules/web3/web3-provider/dapp-chain.tsx b/modules/web3/web3-provider/dapp-chain.tsx index b4031da9..4073a2cc 100644 --- a/modules/web3/web3-provider/dapp-chain.tsx +++ b/modules/web3/web3-provider/dapp-chain.tsx @@ -7,7 +7,11 @@ import { useAppChainManager } from './use-app-chain-manager'; import { LidoSDKProvider } from './lido-sdk'; import { LidoSDKL2Provider } from './lido-sdk-l2'; -export const DappChainContext = createContext(null); +type DappChainContextValue = ReturnType; + +export const DappChainContext = createContext( + null, +); DappChainContext.displayName = 'DappChainContext'; export const SupportL1Chains: React.FC = ({