From b65f2b6c0b46c2dec487a1376fedfa2181b71030 Mon Sep 17 00:00:00 2001 From: Justin Florentine Date: Tue, 10 Oct 2023 11:16:12 -0400 Subject: [PATCH] removes cast Signed-off-by: Justin Florentine --- .../besu/ethereum/eth/transactions/PendingTransaction.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ethereum/eth/src/main/java/org/hyperledger/besu/ethereum/eth/transactions/PendingTransaction.java b/ethereum/eth/src/main/java/org/hyperledger/besu/ethereum/eth/transactions/PendingTransaction.java index b638ef7b6a4..231b8ed16b2 100644 --- a/ethereum/eth/src/main/java/org/hyperledger/besu/ethereum/eth/transactions/PendingTransaction.java +++ b/ethereum/eth/src/main/java/org/hyperledger/besu/ethereum/eth/transactions/PendingTransaction.java @@ -120,9 +120,9 @@ private int computeEIP1559MemorySize() { } private int computeBlobMemorySize() { - long blobsSize = + int blobsSize = transaction.getBlobsWithCommitments().map(BlobsWithCommitments::getByteCount).orElse(0); - return computeEIP1559MemorySize() + (int) blobsSize; + return computeEIP1559MemorySize() + blobsSize; } private int computePayloadMemorySize() {