Skip to content

Commit

Permalink
updated code to implement latest changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Bullrich committed Mar 18, 2024
1 parent 2997f00 commit c9640b2
Showing 1 changed file with 5 additions and 9 deletions.
14 changes: 5 additions & 9 deletions src/fellows.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ export const fetchAllFellows = async (
): Promise<FellowObject[]> => {
logger.info("Initializing smoldot");
const smoldot = start();
const SmProvider = getSmProvider(smoldot);

// TODO: Replace once https://github.com/paritytech/opstooling/discussions/373 is fixed
let polkadotClient: ReturnType<typeof createClient> | null = null;
Expand All @@ -39,13 +38,12 @@ export const fetchAllFellows = async (
potentialRelayChains: [relayChain],
});


Check failure on line 41 in src/fellows.ts

View workflow job for this annotation

GitHub Actions / running lint

Replace `⏎` with `··`

Check failure on line 41 in src/fellows.ts

View workflow job for this annotation

GitHub Actions / running lint

More than 1 blank line not allowed
const SmProviderCollectives = getSmProvider(smoldot, polkadot_collectives);
logger.info("Initializing PAPI");
polkadotClient = createClient(
getChain({
provider: SmProvider({
potentialRelayChains: [relayChain],
chainSpec: polkadot_collectives,
}),
provider: SmProviderCollectives,
keyring: [],
}),
);
Expand All @@ -72,12 +70,10 @@ export const fetchAllFellows = async (
logger.debug("Connecting to relay parachain.");

// We move into the relay chain
const SmProviderRelay = getSmProvider(smoldot, polkadot);

Check failure on line 73 in src/fellows.ts

View workflow job for this annotation

GitHub Actions / running lint

Insert `··`
polkadotClient = createClient(
getChain({
provider: SmProvider({
potentialRelayChains: [relayChain],
chainSpec: polkadot,
}),
provider: SmProviderRelay,
keyring: [],
}),
);
Expand Down

0 comments on commit c9640b2

Please sign in to comment.