Skip to content

Commit

Permalink
dtl: fix unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
tynes committed Jun 1, 2021
1 parent 59c7ba5 commit 8e6d978
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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)
}
Expand Down

0 comments on commit 8e6d978

Please sign in to comment.