From aab16140c1c29ccd093ae556fe1ce167d7e0dd1a Mon Sep 17 00:00:00 2001 From: Brett Date: Thu, 1 Aug 2024 11:52:38 +1000 Subject: [PATCH] fix: incorrect subgraph URL (#77) --- src/lib/providers/ZdaoSdkProvider.tsx | 13 ++++++++----- src/lib/providers/ZnsSdkProvider.tsx | 8 +++++--- 2 files changed, 13 insertions(+), 8 deletions(-) diff --git a/src/lib/providers/ZdaoSdkProvider.tsx b/src/lib/providers/ZdaoSdkProvider.tsx index 1d5445f..cc8c78a 100644 --- a/src/lib/providers/ZdaoSdkProvider.tsx +++ b/src/lib/providers/ZdaoSdkProvider.tsx @@ -30,12 +30,15 @@ export const ZdaoSdkProvider: FC = ({ children }) => { switch (network) { case Network.MAINNET: { - return createSDKInstance( - productionConfiguration( - provider, - NETWORK_CONFIGS[network].ipfsGateway, - ), + const configuration = productionConfiguration( + provider, + NETWORK_CONFIGS[network].ipfsGateway, ); + + configuration.zNS.subgraphUri = + 'https://gateway-arbitrum.network.thegraph.com/api/8f7076f60dfe982cc74ca5a9fe267af6/subgraphs/id/5ATKjB7dJ56wqmGzy1vBqZRcn15SBPWqAVUwbfp95o4f'; + + return createSDKInstance(configuration); } case Network.GOERLI: { diff --git a/src/lib/providers/ZnsSdkProvider.tsx b/src/lib/providers/ZnsSdkProvider.tsx index dd94a74..07fc365 100644 --- a/src/lib/providers/ZnsSdkProvider.tsx +++ b/src/lib/providers/ZnsSdkProvider.tsx @@ -22,9 +22,11 @@ export const ZnsSdkProvider: FC = ({ children }) => { */ switch (network) { case Network.MAINNET: { - return zns.createInstance( - zns.configuration.mainnetConfiguration(provider), - ); + const configuration = zns.configuration.mainnetConfiguration(provider); + configuration.subgraphUri = + 'https://gateway-arbitrum.network.thegraph.com/api/8f7076f60dfe982cc74ca5a9fe267af6/subgraphs/id/5ATKjB7dJ56wqmGzy1vBqZRcn15SBPWqAVUwbfp95o4f'; + + return zns.createInstance(configuration); } case Network.GOERLI: {