Skip to content

Commit

Permalink
Fix Polkadot/Kusama ws endpoints
Browse files Browse the repository at this point in the history
  • Loading branch information
michaeldev5 committed Dec 21, 2023
1 parent e0f4f5a commit 64b1807
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,7 @@ export const createApiInstance = async (wsUrl: string): Promise<ApiPromise> => {
export const createApiInstanceForNode = async (node: TNodeWithRelayChains): Promise<ApiPromise> => {
if (node === 'Polkadot' || node === 'Kusama') {
const endpointOption = node === 'Polkadot' ? prodRelayPolkadot : prodRelayKusama
const wsUrl = Object.values(endpointOption.providers)[0]
const wsUrl = Object.values(endpointOption.providers)[1]
return await createApiInstance(wsUrl)
}
return await getNode(node).createApiInstance()
Expand Down

0 comments on commit 64b1807

Please sign in to comment.