Skip to content

Commit

Permalink
updated method implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
Bullrich committed Mar 18, 2024
1 parent 09d2be9 commit b0b8261
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions src/fellows.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,10 @@ export const fetchAllFellows = async (
potentialRelayChains: [relayChain],
});


const SmProviderCollectives = getSmProvider(smoldot, polkadot_collectives);
const SmProviderCollectives = getSmProvider(smoldot, {
potentialRelayChains: [relayChain],
chainSpec: polkadot_collectives,
});
logger.info("Initializing PAPI");
polkadotClient = createClient(
getChain({
Expand Down Expand Up @@ -70,7 +72,10 @@ export const fetchAllFellows = async (
logger.debug("Connecting to relay parachain.");

// We move into the relay chain
const SmProviderRelay = getSmProvider(smoldot, polkadot);
const SmProviderRelay = getSmProvider(smoldot, {
potentialRelayChains: [relayChain],
chainSpec: polkadot,
});
polkadotClient = createClient(
getChain({
provider: SmProviderRelay,
Expand Down

0 comments on commit b0b8261

Please sign in to comment.