diff --git a/src/transformer.spec.ts b/src/transformer.spec.ts index a9b4c7e..7df49e0 100644 --- a/src/transformer.spec.ts +++ b/src/transformer.spec.ts @@ -53,7 +53,6 @@ describe('transformations', () => { ]); // timestamp expect(tx.timestamp).toBe(1689269015); - expect(tx.isoTimestamp).toBe(new Date(1689269015 * 1000).toISOString()); // fees expect(tx.baseFeePerGas).toBe(49897163985); expect(tx.transactionFee).toBe('1103276192872335'); diff --git a/src/transformers/_common/timestamp.spec.ts b/src/transformers/_common/timestamp.spec.ts index 91d992d..7b8917e 100644 --- a/src/transformers/_common/timestamp.spec.ts +++ b/src/transformers/_common/timestamp.spec.ts @@ -8,9 +8,6 @@ describe('transactionTimestamp', () => { for (let i = 0; i < block.transactions.length; i += 1) { expect(result.transactions[i].timestamp).toBe(block.timestamp); - expect(result.transactions[i].isoTimestamp).toBe( - new Date(block.timestamp * 1000).toISOString(), - ); } }); }); diff --git a/src/transformers/_common/timestamp.ts b/src/transformers/_common/timestamp.ts index 5292120..a445613 100644 --- a/src/transformers/_common/timestamp.ts +++ b/src/transformers/_common/timestamp.ts @@ -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; });