Skip to content

Commit

Permalink
fix: usage of indexer.polkadotRPCEndpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
kilted-andres committed Aug 12, 2024
1 parent e86f6db commit 472df34
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
1 change: 1 addition & 0 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,5 @@ SECRET_AUTHENTICATION_MNEMONIC=
SECRET_ASSERTION_METHOD_MNEMONIC=
SECRET_KEY_AGREEMENT_MNEMONIC=
GRAPHQL_ENDPOINT=https://indexer.kilt.io/
# while using the "...kilt.io" endpoints, please add a trailing "/" so that polkadot.js displays the right colors.
POLKADOT_RPC_ENDPOINT=kilt.ibp.network
6 changes: 1 addition & 5 deletions src/components/CTypeDetails/CTypeDetails.astro
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,6 @@ const version = schema === schemaV1 ? 'V1' : 'draft-01';
const kiltCType = CType.fromProperties(title, properties, version);
const { w3nOrigin, indexer } = configuration;
const polkadotExplorerRPC =
indexer.polkadotRPCEndpoint +
(indexer.polkadotRPCEndpoint.split('.').at(-1) === 'network' ? '' : '%2F');
---

<section class={containerStyles.bigContainer}>
Expand Down Expand Up @@ -103,7 +99,7 @@ const polkadotExplorerRPC =
<legend>Registration Block</legend>

<a
href={`https://polkadot.js.org/apps/?rpc=wss%3A%2F%2F${polkadotExplorerRPC}#/explorer/query/${block}`}
href={`https://polkadot.js.org/apps/?rpc=wss%3A%2F%2F${indexer.polkadotRPCEndpoint}#/explorer/query/${block}`}
>
{block}
</a>
Expand Down

0 comments on commit 472df34

Please sign in to comment.