Skip to content

Commit

Permalink
Chore:Resolved java Util NoSuchElementException (#7730)
Browse files Browse the repository at this point in the history
* 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>
  • Loading branch information
pr9t and macfarla authored Oct 10, 2024
1 parent aac7c63 commit e723b62
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,8 @@ private BlockReceiptsResult getBlockReceiptsResult(final Hash blockHash) {
.map(
block ->
block.getTransactions().stream()
.map(tx -> txReceipt(tx).get())
.map(this::txReceipt)
.flatMap(Optional::stream)
.collect(Collectors.toList()))
.orElse(new ArrayList<>());

Expand Down

0 comments on commit e723b62

Please sign in to comment.