diff --git a/src/scripts/export/worker.ts b/src/scripts/export/worker.ts index 2bcfdad0..d63fa1dc 100644 --- a/src/scripts/export/worker.ts +++ b/src/scripts/export/worker.ts @@ -42,7 +42,7 @@ const main = async () => { }) // Initialize state. - const state = await State.createSingletonIfMissing() + await State.createSingletonIfMissing() // Create CosmWasm client that batches requests. const httpClient = new HttpBatchClient(config.rpc) @@ -101,7 +101,7 @@ const main = async () => { script: 'export', }, extra: { - chainId: state.chainId, + chainId: (await State.getSingleton())?.chainId ?? 'unknown', trace, blockHeight, },