From d00316cc219ee57b99211ae870a19d9115f35b83 Mon Sep 17 00:00:00 2001 From: Justin Traglia Date: Fri, 16 Aug 2024 07:50:55 -0500 Subject: [PATCH] Do the same thing for C# tests --- bindings/csharp/Ckzg.Test/Ckzg.Test.csproj | 2 ++ bindings/csharp/Ckzg.Test/ReferenceTests.cs | 8 ++++---- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/bindings/csharp/Ckzg.Test/Ckzg.Test.csproj b/bindings/csharp/Ckzg.Test/Ckzg.Test.csproj index 233e57986..b13affda6 100644 --- a/bindings/csharp/Ckzg.Test/Ckzg.Test.csproj +++ b/bindings/csharp/Ckzg.Test/Ckzg.Test.csproj @@ -6,6 +6,8 @@ enable True false + + $(NoWarn);IDE0049 diff --git a/bindings/csharp/Ckzg.Test/ReferenceTests.cs b/bindings/csharp/Ckzg.Test/ReferenceTests.cs index c92f0a497..8293edab2 100644 --- a/bindings/csharp/Ckzg.Test/ReferenceTests.cs +++ b/bindings/csharp/Ckzg.Test/ReferenceTests.cs @@ -422,7 +422,7 @@ public void TestComputeCellsAndKzgProofs(ComputeCellsAndKzgProofsTest test) public class RecoverCellsAndKzgProofsInput { - public List CellIndices { get; set; } = null!; + public List CellIndices { get; set; } = null!; public List Cells { get; set; } = null!; } @@ -451,7 +451,7 @@ public void TestRecoverCellsAndKzgProofs(RecoverCellsAndKzgProofsTest test) { byte[] recoveredCells = new byte[CellsPerExtBlob * Ckzg.BytesPerCell]; byte[] recoveredProofs = new byte[CellsPerExtBlob * Ckzg.BytesPerProof]; - ulong[] cellIndices = test.Input.CellIndices.ToArray(); + UInt64[] cellIndices = test.Input.CellIndices.ToArray(); byte[] cells = GetFlatBytes(test.Input.Cells); int numCells = cells.Length / Ckzg.BytesPerCell; @@ -477,7 +477,7 @@ public void TestRecoverCellsAndKzgProofs(RecoverCellsAndKzgProofsTest test) public class VerifyCellKzgProofBatchInput { public List Commitments { get; set; } = null!; - public List CellIndices { get; set; } = null!; + public List CellIndices { get; set; } = null!; public List Cells { get; set; } = null!; public List Proofs { get; set; } = null!; } @@ -506,7 +506,7 @@ private static IEnumerable GetVerifyCellKzgProofBat public void TestVerifyCellKzgProofBatch(VerifyCellKzgProofBatchTest test) { byte[] commitments = GetFlatBytes(test.Input.Commitments); - ulong[] cellIndices = test.Input.CellIndices.ToArray(); + UInt64[] cellIndices = test.Input.CellIndices.ToArray(); byte[] cells = GetFlatBytes(test.Input.Cells); byte[] proofs = GetFlatBytes(test.Input.Proofs); int numCells = cells.Length / Ckzg.BytesPerCell;