Skip to content

Commit

Permalink
Merge pull request #11 from delegit-xyz/nik-clear-up-light-clients
Browse files Browse the repository at this point in the history
Add minor types fix for PAPI
  • Loading branch information
Tbaut authored Aug 19, 2024
2 parents ccb7690 + e5b9f23 commit bde4fb6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/clients.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// `dot` is the name we gave to `npx papi add`
import { dot, ksm } from '@polkadot-api/descriptors'
import { createClient } from 'polkadot-api'
import { TypedApi, createClient } from 'polkadot-api'
import { getWsProvider } from 'polkadot-api/ws-provider/web'

// Connect to the polkadot relay chain.
Expand All @@ -13,5 +13,5 @@ export const ksmClient = createClient(

// To interact with the chain, you need to get the `TypedApi`, which includes
// all the types for every call in that chain:
export const dotApi = dotClient.getTypedApi(dot)
export const kusamaApi = ksmClient.getTypedApi(ksm)
export const dotApi: TypedApi<typeof dot> = dotClient.getTypedApi(dot)
export const kusamaApi: TypedApi<typeof ksm> = ksmClient.getTypedApi(ksm)

0 comments on commit bde4fb6

Please sign in to comment.