Skip to content

Commit

Permalink
fix: incorrect subgraph URL (#77)
Browse files Browse the repository at this point in the history
  • Loading branch information
colbr authored Aug 1, 2024
1 parent aad937c commit aab1614
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 8 deletions.
13 changes: 8 additions & 5 deletions src/lib/providers/ZdaoSdkProvider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,15 @@ export const ZdaoSdkProvider: FC<ZdaoSdkProviderProps> = ({ 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: {
Expand Down
8 changes: 5 additions & 3 deletions src/lib/providers/ZnsSdkProvider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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: {
Expand Down

0 comments on commit aab1614

Please sign in to comment.