diff --git a/src/hooks/useOrgHooks.js b/src/hooks/useOrgHooks.js index 1e3b913..8cf60f9 100644 --- a/src/hooks/useOrgHooks.js +++ b/src/hooks/useOrgHooks.js @@ -81,10 +81,10 @@ export function useAppData(organization) { addressesEqual(appAddress, convictionApp.address) ) - const convictionVoting = await ConvictionVoting( - convictionApp, - defaultSubgraphUrl - ) + const convictionVoting = await ConvictionVoting(convictionApp, [ + 'thegraph', + { subgraphUrl: defaultSubgraphUrl }, + ]) if (!cancelled) { setAppData(appData => ({ diff --git a/src/networks.js b/src/networks.js index 8205ef8..0a29cee 100644 --- a/src/networks.js +++ b/src/networks.js @@ -7,7 +7,7 @@ const networks = { ensRegistry: '0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e', defaultEthNode: 'wss://mainnet.eth.aragon.network/ws', defaultSubgraphUrl: - 'https://api.thegraph.com/subgraphs/name/1hive/aragon-conviction-voting-mainnet', + 'https://graph.backend.aragon.org/subgraphs/name/1hive/aragon-conviction-voting-mainnet', name: 'Mainnet', orgAddress: '0xaAf56C0D604dDB88bBe451ae0db4580Ca3D49c0A', type: 'mainnet',