You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
listPools: This function takes start index and length and returns a promise of an object that contains a list of pools. Each pool in the list contains the poolID, owner, poolName, parent, and participants of the pool
312
+
*/
313
+
exportconstmanifestNewBatch=async(
314
+
api: ApiPromise|undefined,
315
+
poolId: number,
316
+
uploader: string,
317
+
cids: string[]
318
+
): Promise<string[]>=>{
319
+
console.log('manifestAvailableBatch in react-native started');
320
+
letnewCids: string[]=[];
321
+
try{
322
+
if(api===undefined){
323
+
api=awaitinit();
324
+
}
325
+
// Type guard to assure TypeScript that api is not undefined
326
+
if(!api?.query?.fula?.manifests){
327
+
thrownewError('Failed to initialize api or api.query.fula');
0 commit comments