Skip to content

Commit

Permalink
Restores filter for transactions with listened events.
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrés Elizondo committed May 29, 2024
1 parent 792d252 commit 7530f96
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/scripts/pull_and_save_block_events.ts
Original file line number Diff line number Diff line change
Expand Up @@ -140,10 +140,13 @@ function parseTransactionEvents(transaction: FullTransaction): ParsedTransaction
};
});

const foundScrapedEventInTx = nestedParsedEvents.map((npe) => npe.events).flat().length > 0;

return {
// We need all reverted txs for joining with traces later
// toString is needed because we libraries do not match
parsedTransaction: parsedTransaction,
parsedTransaction:
foundScrapedEventInTx || transaction.status!.toString() === 'false' ? parsedTransaction : null,
parsedEvents: nestedParsedEvents,
};
}
Expand Down

0 comments on commit 7530f96

Please sign in to comment.