Skip to content

Commit

Permalink
Fix trivial things in c#/java bindings (#513)
Browse files Browse the repository at this point in the history
  • Loading branch information
asn-d6 authored Sep 26, 2024
1 parent cee63f6 commit 0ff9f37
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion bindings/csharp/Ckzg.Bindings/Ckzg.cs
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ public static unsafe bool VerifyBlobKzgProofBatch(ReadOnlySpan<byte> blobs, Read
{
ThrowOnUninitializedTrustedSetup(ckzgSetup);
ThrowOnInvalidLength(blobs, nameof(blobs), BytesPerBlob * count);
ThrowOnInvalidLength(commitments, nameof(proofs), BytesPerCommitment * count);
ThrowOnInvalidLength(commitments, nameof(commitments), BytesPerCommitment * count);
ThrowOnInvalidLength(proofs, nameof(proofs), BytesPerProof * count);

fixed (byte* blobsPtr = blobs, commitmentsPtr = commitments, proofsPtr = proofs)
Expand Down
2 changes: 1 addition & 1 deletion bindings/java/ckzg_jni.c
Original file line number Diff line number Diff line change
Expand Up @@ -637,7 +637,7 @@ Java_ethereum_ckzg4844_CKZG4844JNI_verifyCellKzgProofBatch(
(size_t)(*env)->GetArrayLength(env, commitments_bytes);
if (commitments_size % BYTES_PER_COMMITMENT != 0) {
throw_invalid_size_exception(env, "Invalid commitments size.",
commitments_size % BYTES_PER_COMMITMENT,
commitments_size,
BYTES_PER_COMMITMENT);
return 0;
}
Expand Down

0 comments on commit 0ff9f37

Please sign in to comment.