Commit 72d092ec authored by Kelvin Fichter's avatar Kelvin Fichter

Linted again

parents 51ee302a ec851f88
......@@ -220,7 +220,8 @@ contract OVM_CanonicalTransactionChain is iOVM_CanonicalTransactionChain, OVM_Ba
emit QueueBatchAppended(
nextQueueIndex - _numQueuedTransactions,
_numQueuedTransactions
_numQueuedTransactions,
getTotalElements()
);
}
......@@ -340,7 +341,8 @@ contract OVM_CanonicalTransactionChain is iOVM_CanonicalTransactionChain, OVM_Ba
emit SequencerBatchAppended(
nextQueueIndex - numQueuedTransactions,
numQueuedTransactions
numQueuedTransactions,
getTotalElements()
);
}
......
......@@ -28,12 +28,14 @@ interface iOVM_CanonicalTransactionChain is iOVM_BaseChain {
event QueueBatchAppended(
uint256 _startingQueueIndex,
uint256 _numQueueElements
uint256 _numQueueElements,
uint256 _totalElements
);
event SequencerBatchAppended(
uint256 _startingQueueIndex,
uint256 _numQueueElements
uint256 _numQueueElements,
uint256 _totalElements
);
......
......@@ -423,7 +423,7 @@ describe('OVM_CanonicalTransactionChain', () => {
).appendQueueBatch(1)
)
.to.emit(OVM_CanonicalTransactionChain, 'QueueBatchAppended')
.withArgs(0, 1)
.withArgs(0, 1, 1)
})
})
......@@ -438,13 +438,13 @@ describe('OVM_CanonicalTransactionChain', () => {
it('should be able to append a single element', async () => {
await expect(OVM_CanonicalTransactionChain.appendQueueBatch(1))
.to.emit(OVM_CanonicalTransactionChain, 'QueueBatchAppended')
.withArgs(0, 1)
.withArgs(0, 1, 1)
})
it(`should be able to append ${size} elements`, async () => {
await expect(OVM_CanonicalTransactionChain.appendQueueBatch(size))
.to.emit(OVM_CanonicalTransactionChain, 'QueueBatchAppended')
.withArgs(0, size)
.withArgs(0, size, size)
})
it(`should revert if appending ${size} + 1 elements`, async () => {
......@@ -721,7 +721,7 @@ describe('OVM_CanonicalTransactionChain', () => {
OVM_CanonicalTransactionChain,
'SequencerBatchAppended'
)
.withArgs(0, 0)
.withArgs(0, 0, size)
})
})
})
......@@ -772,7 +772,7 @@ describe('OVM_CanonicalTransactionChain', () => {
OVM_CanonicalTransactionChain,
'SequencerBatchAppended'
)
.withArgs(0, size)
.withArgs(0, size, size * 2)
})
})
......@@ -815,7 +815,7 @@ describe('OVM_CanonicalTransactionChain', () => {
OVM_CanonicalTransactionChain,
'SequencerBatchAppended'
)
.withArgs(0, spacing)
.withArgs(0, spacing, size + spacing)
})
})
})
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment