Chore:Resolved java Util NoSuchElementException (#7730)

* Chore:Resolved java Util NoSuchElementException

Signed-off-by: Preeti <35308865+pr9t@users.noreply.github.com>

* formatting

Signed-off-by: Sally MacFarlane <macfarla.github@gmail.com>

---------

Signed-off-by: Preeti <35308865+pr9t@users.noreply.github.com>
Signed-off-by: Sally MacFarlane <macfarla.github@gmail.com>
Co-authored-by: Sally MacFarlane <macfarla.github@gmail.com>
pull/7750/head
Preeti 1 month ago committed by GitHub
parent aac7c63b08
commit e723b622c8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 3
      ethereum/api/src/main/java/org/hyperledger/besu/ethereum/api/jsonrpc/internal/methods/EthGetBlockReceipts.java

@ -95,7 +95,8 @@ public class EthGetBlockReceipts extends AbstractBlockParameterOrBlockHashMethod
.map( .map(
block -> block ->
block.getTransactions().stream() block.getTransactions().stream()
.map(tx -> txReceipt(tx).get()) .map(this::txReceipt)
.flatMap(Optional::stream)
.collect(Collectors.toList())) .collect(Collectors.toList()))
.orElse(new ArrayList<>()); .orElse(new ArrayList<>());

Loading…
Cancel
Save