diff --git a/dappnode/hooks/use-ec-sanity-check.ts b/dappnode/hooks/use-ec-sanity-check.ts index 53cdf3ef..19a18067 100644 --- a/dappnode/hooks/use-ec-sanity-check.ts +++ b/dappnode/hooks/use-ec-sanity-check.ts @@ -1,6 +1,7 @@ import { CHAINS } from '@lido-sdk/constants'; import getConfig from 'next/config'; import { useEffect, useMemo, useState } from 'react'; +import { useAccount } from 'shared/hooks'; export const useECSanityCheck = () => { const [isInstalled, setIsInstalled] = useState(false); @@ -9,7 +10,7 @@ export const useECSanityCheck = () => { const [isLoading, setIsLoading] = useState(true); const { publicRuntimeConfig } = getConfig(); - const chainId = publicRuntimeConfig.defaultChain; + const { chainId } = useAccount(); const contractTx = useMemo( () => ({