Skip to content

Commit

Permalink
fix BlobsUtil endianness
Browse files Browse the repository at this point in the history
  • Loading branch information
tbenr committed Jun 1, 2023
1 parent 13f934a commit ae9ac9e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ private Blob generateBlob(final UInt64 slot) {
final Bytes rawBlob =
IntStream.range(0, fieldElementsPerBlob)
.mapToObj(__ -> randomBLSFieldElement())
.map(fieldElement -> Bytes.wrap(fieldElement.toArray(ByteOrder.LITTLE_ENDIAN)))
.map(fieldElement -> Bytes.wrap(fieldElement.toArray(ByteOrder.BIG_ENDIAN)))
.reduce(Bytes::wrap)
.orElse(Bytes.EMPTY);

Expand Down

0 comments on commit ae9ac9e

Please sign in to comment.