Skip to content

Commit

Permalink
fix: attempt to fix flake in e2e cross chain messaging test
Browse files Browse the repository at this point in the history
  • Loading branch information
dbanks12 committed Dec 11, 2024
1 parent 7746a39 commit 5f5d444
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions yarn-project/simulator/src/avm/journal/journal.ts
Original file line number Diff line number Diff line change
Expand Up @@ -379,8 +379,8 @@ export class AvmPersistableStateManager {
} else {
// Sanity check that the leaf value is skipped by low leaf when it doesn't exist
assert(
siloedNullifier.toBigInt() > leafPreimage.nullifier.toBigInt() &&
siloedNullifier.toBigInt() < leafPreimage.nextNullifier.toBigInt(),
leafPreimage.nullifier.toBigInt() < siloedNullifier.toBigInt() &&
(leafPreimage.nextIndex === 0n || leafPreimage.nextNullifier.toBigInt() > siloedNullifier.toBigInt()),
'Nullifier tree low leaf should skip the target leaf nullifier when the target leaf does not exist.',
);
}
Expand Down

0 comments on commit 5f5d444

Please sign in to comment.