From 0b2b28b0e32ae0c4dbb163d672c0d61e7fa9e9bd Mon Sep 17 00:00:00 2001 From: madhurMongia Date: Wed, 15 Jan 2025 14:50:28 +0530 Subject: [PATCH] subgraph config fix --- src/config/subgraph.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/config/subgraph.ts b/src/config/subgraph.ts index 78a9c2a..0cba16a 100644 --- a/src/config/subgraph.ts +++ b/src/config/subgraph.ts @@ -11,10 +11,10 @@ export type queryReturnType = Record< >; export const subgraph_url = { - [mainnet.id]: process.env.MAINNET_SUBGRAPH_URL ?? throw new Error('MAINNET_SUBGRAPH_URL not set'), - [gnosis.id]: process.env.GNOSIS_SUBGRAPH_URL ?? throw new Error('GNOSIS_SUBGRAPH_URL not set'), - [sepolia.id]: process.env.SEPOLIA_SUBGRAPH_URL ?? throw new Error('SEPOLIA_SUBGRAPH_URL not set'), - [gnosisChiado.id]: process.env.CHIADO_SUBGRAPH_URL ?? throw new Error('CHIADO_SUBGRAPH_URL not set'), + [mainnet.id]: process.env.MAINNET_SUBGRAPH_URL, + [gnosis.id]: process.env.GNOSIS_SUBGRAPH_URL, + [sepolia.id]: process.env.SEPOLIA_SUBGRAPH_URL, + [gnosisChiado.id]: process.env.CHIADO_SUBGRAPH_URL, }; export const sdk = {