Skip to content

Commit

Permalink
Updated explorer to build with modified polkadapt
Browse files Browse the repository at this point in the history
  • Loading branch information
Kriekkop committed Oct 10, 2023
1 parent e6f7172 commit 0763d8f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/app/services/network.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -108,10 +108,10 @@ export class NetworkService {

this.pa.run({observableResults: false}).getChainProperties()
.pipe(
filter((properties) => Boolean((properties.name || properties.systemName) && properties.specName))
filter((properties) => Boolean((properties.systemName) && properties.specName))
).subscribe({
next: (properties: types.ChainProperties) => {
const name: string = (properties.name ? properties.name : properties.systemName) as string;
const name: string = properties.systemName as string;
const ss58Format: number = properties.chainSS58 ?? this.defaultSS58;
const tokenSymbol: string = (properties.chainTokens && properties.chainTokens[0]) ?? this.defaultSymbol;
const tokenDecimals: number = (properties.chainDecimals && properties.chainDecimals[0]) ?? this.defaultDecimals;
Expand Down
2 changes: 0 additions & 2 deletions src/app/services/polkadapt.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -109,8 +109,6 @@ export class PolkadaptService {
if (config.subsquid && Object.keys(config.subsquid).length) {
aa.subsquid = new subsquid.Adapter({
chain: network,
archiveUrl: this.config.networks[network].subsquid?.archiveUrl,
explorerUrl: this.config.networks[network].subsquid?.explorerUrl,
giantSquidExplorerUrl: this.config.networks[network].subsquid?.giantSquidExplorerUrl,
giantSquidMainUrl: this.config.networks[network].subsquid?.giantSquidMainUrl,
giantSquidStatsUrl: this.config.networks[network].subsquid?.giantSquidStatsUrl
Expand Down

0 comments on commit 0763d8f

Please sign in to comment.