Skip to content

Commit

Permalink
refactor(sdk): skip events with no logs (#652)
Browse files Browse the repository at this point in the history
  • Loading branch information
ChesterSim authored Oct 22, 2023
1 parent 072ce7a commit 5d2eda0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions sdk/src/events/fetchLogs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,9 @@ export class LogParser {

public parseEventsFromLogs(event: Log): WrappedEvents {
const records: WrappedEvents = [];

if (!event.logs) return records;

// @ts-ignore
const eventGenerator = this.program._events._eventParser.parseLogs(
event.logs,
Expand Down

0 comments on commit 5d2eda0

Please sign in to comment.