Skip to content

Commit

Permalink
fix timestamp
Browse files Browse the repository at this point in the history
  • Loading branch information
avkos committed Feb 6, 2024
1 parent 36182b4 commit d3a13c9
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/schemas.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export const BlockDetailsSchema = {
format: 'uint',
},
timestamp: {
format: 'uint',
type: 'number',
},
l1BatchNumber: {
format: 'uint',
Expand Down Expand Up @@ -55,7 +55,7 @@ export const BatchDetailsSchema = {
format: 'uint',
},
timestamp: {
format: 'uint',
type: 'number',
},
l1TxCount: { format: 'uint' },
l2TxCount: { format: 'uint' },
Expand Down
2 changes: 1 addition & 1 deletion test/fixtures.ts
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ export const getL1BatchDetailsData = {
input: 12345,
output: {
number: BigInt(12345),
timestamp: BigInt(1681063384),
timestamp: 1681063384,
l1TxCount: BigInt(9),
l2TxCount: BigInt(294),
rootHash: '0x994d2738f7ac89b45c8381a7816307b501c00b3127afc79e440dbf1b3e3b5a8c',
Expand Down
1 change: 0 additions & 1 deletion test/rpc.mainnet.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ describe('ZkSyncPlugin rpc mainnet tests', () => {
});
it('bigint test', async () => {
const latestBatchIndex = await web3.zkSync.rpc.getL1BatchNumber();
console.log('latestBatchIndex', latestBatchIndex);
const latestBatchDetails = await web3.zkSync.rpc.getL1BatchDetails(latestBatchIndex);
const blockDetails = await web3.zkSync.rpc.getBlockDetails(latestBatchDetails.number);
expect(blockDetails.number).toBeDefined();
Expand Down

0 comments on commit d3a13c9

Please sign in to comment.