Skip to content

Commit

Permalink
fix: Do not throw if access list is empty
Browse files Browse the repository at this point in the history
Signed-off-by: Gabriel-Trintinalia <[email protected]>
  • Loading branch information
Gabriel-Trintinalia committed Apr 12, 2024
1 parent 5b96dca commit c21ac10
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c21ac10

Please sign in to comment.