From 8e6d97851fe5b06c373f25a87f28921c662384ff Mon Sep 17 00:00:00 2001 From: Mark Tyneway Date: Tue, 1 Jun 2021 13:09:52 -0700 Subject: [PATCH] dtl: fix unit tests --- .../l1-ingestion/handlers/sequencer-batch-appended.spec.ts | 2 +- .../l1-ingestion/handlers/transaction-enqueued.spec.ts | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/data-transport-layer/test/unit-tests/services/l1-ingestion/handlers/sequencer-batch-appended.spec.ts b/packages/data-transport-layer/test/unit-tests/services/l1-ingestion/handlers/sequencer-batch-appended.spec.ts index 0a6690bf832e..813f3c65c63a 100644 --- a/packages/data-transport-layer/test/unit-tests/services/l1-ingestion/handlers/sequencer-batch-appended.spec.ts +++ b/packages/data-transport-layer/test/unit-tests/services/l1-ingestion/handlers/sequencer-batch-appended.spec.ts @@ -18,7 +18,7 @@ describe('Event Handlers: OVM_CanonicalTransactionChain.SequencerBatchAppended', submitter: '0xfd7d4de366850c08ee2cba32d851385a3071ec8d', l1TransactionHash: '0x6effe006836b841205ace4d99d7ae1b74ee96aac499a3f358b97fccd32ee9af2', - gasLimit: 548976, + gasLimit: '548976', prevTotalElements: BigNumber.from(73677), batchIndex: BigNumber.from(743), batchSize: BigNumber.from(101), diff --git a/packages/data-transport-layer/test/unit-tests/services/l1-ingestion/handlers/transaction-enqueued.spec.ts b/packages/data-transport-layer/test/unit-tests/services/l1-ingestion/handlers/transaction-enqueued.spec.ts index 52e5da27739e..b14d6ba505b9 100644 --- a/packages/data-transport-layer/test/unit-tests/services/l1-ingestion/handlers/transaction-enqueued.spec.ts +++ b/packages/data-transport-layer/test/unit-tests/services/l1-ingestion/handlers/transaction-enqueued.spec.ts @@ -93,7 +93,7 @@ describe('Event Handlers: OVM_CanonicalTransactionChain.TransactionEnqueued', () } }) - it('should have a gasLimit equal to the integer value of the _gasLimit argument', () => { + it('should have a gasLimit equal to the string value of the _gasLimit argument', () => { for ( let i = 0; i < Number.MAX_SAFE_INTEGER; @@ -113,7 +113,7 @@ describe('Event Handlers: OVM_CanonicalTransactionChain.TransactionEnqueued', () const output1 = handleEventsTransactionEnqueued.parseEvent(...input1) - const expected1 = BigNumber.from(i).toNumber() + const expected1 = BigNumber.from(i).toString() expect(output1).to.have.property('gasLimit', expected1) }