From c21ac10d855913a8b57ee1f0e57fbc4eaa71be01 Mon Sep 17 00:00:00 2001 From: Gabriel-Trintinalia Date: Fri, 12 Apr 2024 08:50:34 -0300 Subject: [PATCH] fix: Do not throw if access list is empty Signed-off-by: Gabriel-Trintinalia --- .../consensys/linea/zktracer/module/rlp/txn/RlpTxnChunk.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arithmetization/src/main/java/net/consensys/linea/zktracer/module/rlp/txn/RlpTxnChunk.java b/arithmetization/src/main/java/net/consensys/linea/zktracer/module/rlp/txn/RlpTxnChunk.java index 6158cb22c4..c49c700fd2 100644 --- a/arithmetization/src/main/java/net/consensys/linea/zktracer/module/rlp/txn/RlpTxnChunk.java +++ b/arithmetization/src/main/java/net/consensys/linea/zktracer/module/rlp/txn/RlpTxnChunk.java @@ -113,7 +113,7 @@ protected int computeLineCount() { // Phase AccessList if (txType == 1 || txType == 2) { - if (this.tx.getAccessList().orElseThrow().isEmpty()) { + if (this.tx.getAccessList().isEmpty() || this.tx.getAccessList().get().isEmpty()) { rowSize += 1; } else { // Rlp prefix of the AccessList list