From c3f226775f24508b93a758e4226a51ae386d76a5 Mon Sep 17 00:00:00 2001 From: FlorianHuc Date: Fri, 19 Jan 2024 08:50:33 +0100 Subject: [PATCH] fix stackedSet --- .../linea/zktracer/container/stacked/set/StackedSet.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arithmetization/src/main/java/net/consensys/linea/zktracer/container/stacked/set/StackedSet.java b/arithmetization/src/main/java/net/consensys/linea/zktracer/container/stacked/set/StackedSet.java index 5f938b20b1..29541a8539 100644 --- a/arithmetization/src/main/java/net/consensys/linea/zktracer/container/stacked/set/StackedSet.java +++ b/arithmetization/src/main/java/net/consensys/linea/zktracer/container/stacked/set/StackedSet.java @@ -121,7 +121,7 @@ public T[] toArray(@NotNull T[] a) { @Override public boolean add(E e) { - final boolean isNew = this.sets.peek().add(e); + final boolean isNew = this.sets.peekLast().add(e); if (isNew) { occurrences.put(e, occurrences.getOrDefault(e, 0) + 1); }