Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
flatMap(async (block) => {
const actions = _.flatten(
block.transactions.map((transaction) => {
if (transaction.type === 'InvocationTransaction') {
return [...transaction.invocationData.actions];
}
return [];
}),
);
return AsyncIterableX.of(...actions);
}),
);