From 6d882c8cd96747d0b05d5a75bbae0141c0c84d5c Mon Sep 17 00:00:00 2001 From: Gabriel-Trintinalia Date: Tue, 9 Apr 2024 15:30:23 -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 5c22cae4b0..668f99dbf1 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 @@ -124,7 +124,7 @@ protected int computeLineCount() { // Phase 10: 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