mirror of
https://github.com/vacp2p/status-linea-besu.git
synced 2026-01-09 13:58:02 -05:00
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>
This commit is contained in:
@@ -95,7 +95,8 @@ public class EthGetBlockReceipts extends AbstractBlockParameterOrBlockHashMethod
|
||||
.map(
|
||||
block ->
|
||||
block.getTransactions().stream()
|
||||
.map(tx -> txReceipt(tx).get())
|
||||
.map(this::txReceipt)
|
||||
.flatMap(Optional::stream)
|
||||
.collect(Collectors.toList()))
|
||||
.orElse(new ArrayList<>());
|
||||
|
||||
|
||||
Reference in New Issue
Block a user