Skip to content

Commit

Permalink
return nothing if not L1 networks
Browse files Browse the repository at this point in the history
  • Loading branch information
gluneau committed Feb 5, 2024
1 parent e610572 commit c9c499c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/services/DappsStakingEvents.ts
Original file line number Diff line number Diff line change
Expand Up @@ -405,6 +405,8 @@ export class DappsStakingEvents extends ServiceBase implements IDappsStakingEven

private getApiUrl(network: NetworkType): string {
// For local development: `http://localhost:4350/graphql`;
return `https://squid.subsquid.io/dapps-staking-indexer-${network}/graphql`;
return ['astar', 'shiden', 'shibuya'].includes(network)
? `https://squid.subsquid.io/dapps-staking-indexer-${network}/graphql`
: '';
}
}

0 comments on commit c9c499c

Please sign in to comment.