Skip to content

Commit 1e49a9a

Browse files
committed
fix: remove client-side timestamp conversion for events
The events API now returns timestamps in milliseconds, matching the transactions API. The previous * 1000 conversion is no longer needed.
1 parent 16a52ec commit 1e49a9a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/store/apis/events/events.types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ export function adaptApiEvent(raw: RawApiEvent): TransactionEvent {
199199
const base: TransactionEvent = {
200200
epoch: raw.epoch,
201201
tickNumber: raw.tickNumber,
202-
timestamp: Number(raw.timestamp) * 1000,
202+
timestamp: Number(raw.timestamp),
203203
emittingContractIndex: Number(raw.emittingContractIndex),
204204
transactionHash: virtualTx
205205
? getVirtualTxId(raw.categories, raw.tickNumber)

0 commit comments

Comments
 (0)