git.delta.rocks / unique-network / refs/commits / 2c2096c1385c

difftreelog

fix disconnect when not needed in RMRK helpers

Daniel Shiposha2022-10-14parent: #a41938c.patch.diff
in: master

1 file changed

modifiedtests/src/rmrk/util/helpers.tsdiffbeforeafterboth
42export async function missingRequiredPallets(requiredPallets: string[]): Promise<string[]> {42export async function missingRequiredPallets(requiredPallets: string[]): Promise<string[]> {
43 const api = await getApiConnection();43 const api = await getApiConnection();
44 const pallets = getModuleNames(api);44 const pallets = getModuleNames(api);
45 await api.disconnect();
4546
46 return requiredPallets.filter(p => !pallets.includes(p));47 return requiredPallets.filter(p => !pallets.includes(p));
47}48}