From b1909f9c4b718a1bac8ff5edec67ad8b2acb3bf3 Mon Sep 17 00:00:00 2001 From: Javier Bullrich Date: Tue, 19 Mar 2024 10:59:22 +0100 Subject: [PATCH] applied variable type --- src/fellows.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/fellows.ts b/src/fellows.ts index 61a56d2..381e640 100644 --- a/src/fellows.ts +++ b/src/fellows.ts @@ -1,4 +1,4 @@ -import { createClient } from "@polkadot-api/client"; +import { createClient, PolkadotClient } from "@polkadot-api/client"; import { getChain } from "@polkadot-api/node-polkadot-provider"; import { getSmProvider } from "@polkadot-api/sm-provider"; import { @@ -25,8 +25,7 @@ export const fetchAllFellows = async ( logger.info("Initializing smoldot"); const smoldot = start(); - // TODO: Replace once https://github.com/paritytech/opstooling/discussions/373 is fixed - let polkadotClient: ReturnType | null = null; + let polkadotClient: PolkadotClient | null = null; try { const relayChain = await smoldot.addChain({