Skip to content

Commit 7d159dc

Browse files
chore: tx contract timestamp to unix timestamp
1 parent df72507 commit 7d159dc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/sdk-ts/src/client/indexer/transformers/IndexerGrpcExplorerTransformer.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -641,7 +641,7 @@ export class IndexerGrpcExplorerTransformer {
641641
error_log: tx.errorLog,
642642
height: parseInt(tx.blockNumber, 10),
643643
tx_number: parseInt(tx.txNumber, 10),
644-
time: parseInt(tx.blockTimestamp, 10),
644+
time: parseInt(tx.blockUnixTimestamp, 10),
645645
amount: getContractTransactionV2Amount(tx),
646646
logs: JSON.parse(Buffer.from(tx.logs).toString('utf8')),
647647
data: '/' + Buffer.from(tx.data).toString('utf8').split('/').pop(),

0 commit comments

Comments
 (0)