diff --git a/sdk/src/events/fetchLogs.ts b/sdk/src/events/fetchLogs.ts index d33b681b6..947019512 100644 --- a/sdk/src/events/fetchLogs.ts +++ b/sdk/src/events/fetchLogs.ts @@ -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,