diff --git a/arithmetization/src/main/java/net/consensys/linea/zktracer/module/hub/TxTrace.java b/arithmetization/src/main/java/net/consensys/linea/zktracer/module/hub/TxTrace.java index 1a85fe491d..6993b902b8 100644 --- a/arithmetization/src/main/java/net/consensys/linea/zktracer/module/hub/TxTrace.java +++ b/arithmetization/src/main/java/net/consensys/linea/zktracer/module/hub/TxTrace.java @@ -115,6 +115,10 @@ public void commit(Trace hubTrace) { * @return the line number in this transaction trace */ public int lineCount() { - return this.trace.stream().mapToInt(section -> section.getLines().size()).sum(); + int sum = 0; + for (TraceSection s : trace) { + sum += s.getLines().size(); + } + return sum; } }