Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
benesjan committed Mar 6, 2024
1 parent 8600c07 commit 0201509
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions l1-contracts/test/NewInbox.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -196,8 +196,13 @@ contract NewInboxTest is Test {

// Now we consume the trees
for (uint256 i = 0; i < numTreesToConsume; i++) {
uint256 expectedNumTrees =
(inbox.getToConsume() + 1 == inbox.getInProgress()) ? numTrees + 1 : numTrees;
bytes32 root = inbox.consume();

// We perform this check to verify that new tree initialization works as expected
assertEq(inbox.getNumTrees(), expectedNumTrees, "Unexptected number of trees");

// We perform empty roots check only after first batch because after second one the following simple accounting
// does not work
if (isFirstRun) {
Expand Down

0 comments on commit 0201509

Please sign in to comment.