Skip to content

Commit

Permalink
sw: updated chains
Browse files Browse the repository at this point in the history
  • Loading branch information
shanefontaine committed Sep 19, 2024
1 parent af70cba commit 284d6e1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/stats-worker/src/utils/getSubgraphUrl.ts
Original file line number Diff line number Diff line change
@@ -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,
Expand All @@ -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}`)
}
Expand Down

0 comments on commit 284d6e1

Please sign in to comment.