Skip to content

Commit

Permalink
small nit
Browse files Browse the repository at this point in the history
  • Loading branch information
StefanBratanov committed Nov 7, 2023
1 parent 8e9610f commit 105c617
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2261,8 +2261,9 @@ public BlobsBundle randomBlobsBundle(final int count) {
private BlobsBundle randomBlobsBundle(final Optional<Integer> count, final UInt64 slot) {
final BlobSchema blobSchema = getDenebSchemaDefinitions(slot).getBlobSchema();
final List<KZGCommitment> commitments =
(count.isPresent() ? randomBlobKzgCommitments(count.get()) : randomBlobKzgCommitments())
.stream().map(SszKZGCommitment::getKZGCommitment).collect(toList());
count.map(this::randomBlobKzgCommitments).orElse(randomBlobKzgCommitments()).stream()
.map(SszKZGCommitment::getKZGCommitment)
.toList();
final List<KZGProof> proofs =
IntStream.range(0, commitments.size()).mapToObj(__ -> randomKZGProof()).collect(toList());
return new BlobsBundle(
Expand Down

0 comments on commit 105c617

Please sign in to comment.