From 284d6e19599bcc931d241f342b9c834405ed103f Mon Sep 17 00:00:00 2001 From: Shane Fontaine <9441295+shanefontaine@users.noreply.github.com> Date: Thu, 19 Sep 2024 14:07:42 -0700 Subject: [PATCH] sw: updated chains --- packages/stats-worker/src/utils/getSubgraphUrl.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/stats-worker/src/utils/getSubgraphUrl.ts b/packages/stats-worker/src/utils/getSubgraphUrl.ts index 45c7e2afb2..666ba75738 100644 --- a/packages/stats-worker/src/utils/getSubgraphUrl.ts +++ b/packages/stats-worker/src/utils/getSubgraphUrl.ts @@ -1,4 +1,4 @@ -import { mainnet as mainnetAddresses } from '@hop-protocol/sdk/addresses' +import { getChain } from '@hop-protocol/sdk/chains' export function getSubgraphUrl ( chain: string, @@ -8,7 +8,7 @@ export function getSubgraphUrl ( return `http://localhost:8000/subgraphs/name/hop-protocol/hop-${chain}` } - const url = (mainnetAddresses as any)[chain]?.subgraphUrl + const url = getChain(chain)?.subgraphUrl if (!url) { throw new Error(`subgraph url not found for chain ${chain}`) }