Skip to content

Commit

Permalink
feat: remove isotimestamp
Browse files Browse the repository at this point in the history
  • Loading branch information
ponyjackal committed Feb 12, 2024
1 parent 3b90d7e commit 16f93f5
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/transformers/_common/timestamp.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,8 @@
import type { RawBlock } from '../../types';

export function transform(block: RawBlock): RawBlock {
const isoTimestamp = new Date(block.timestamp * 1000).toISOString();

block.transactions = block.transactions.map((tx) => {
tx.timestamp = block.timestamp;
tx.isoTimestamp = isoTimestamp;
return tx;
});

Expand Down

0 comments on commit 16f93f5

Please sign in to comment.