Skip to content

Commit 4f0141a

Browse files
committed
fix: null logs
1 parent 51966dc commit 4f0141a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

services/decoder/decoder.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ export class GoldRushDecoder {
153153
) => {
154154
const covalent_client = new CovalentClient(covalent_api_key);
155155
const events: EventType[] = [];
156-
const logs = tx.log_events.reverse();
156+
const logs = (tx.log_events ?? []).reverse();
157157
for (const log of logs) {
158158
const {
159159
raw_log_topics: [topic0_hash],

0 commit comments

Comments
 (0)