diff --git a/src/clients.tsx b/src/clients.tsx index 95201bb..a1f1720 100644 --- a/src/clients.tsx +++ b/src/clients.tsx @@ -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. @@ -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 = dotClient.getTypedApi(dot) +export const kusamaApi: TypedApi = ksmClient.getTypedApi(ksm)