From 0c99e76690f7ef5709e7a56e7aecb053d91a83a1 Mon Sep 17 00:00:00 2001 From: mateumiralles Date: Mon, 3 Feb 2025 19:02:53 +0100 Subject: [PATCH] fix: rely on wallet provider instead of envs --- dappnode/hooks/use-ec-sanity-check.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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( () => ({