diff --git a/src/scripts/export/index.ts b/src/scripts/export/index.ts index f8c86873..db1caa14 100644 --- a/src/scripts/export/index.ts +++ b/src/scripts/export/index.ts @@ -155,7 +155,7 @@ const trace = async () => { file: traceFile, onData: (data) => { const tracedEvent = data as TracedEvent - // Ensure this is a traced write event. + // Ensure this is a traced write or delete event. if ( !objectMatchesStructure(tracedEvent, { operation: {}, @@ -163,7 +163,6 @@ const trace = async () => { value: {}, metadata: { blockHeight: {}, - txHash: {}, }, }) ) { diff --git a/src/scripts/export/types.ts b/src/scripts/export/types.ts index d4130d50..70b0777c 100644 --- a/src/scripts/export/types.ts +++ b/src/scripts/export/types.ts @@ -30,8 +30,8 @@ export type TracedEvent = { value: string metadata: { blockHeight: number - txHash: string - store_name: string + txHash?: string + store_name?: string } }