Skip to content

Commit b4b81f2

Browse files
committed
remove slice
1 parent a064648 commit b4b81f2

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ it("proves and verifies on-chain", async () => {
106106

107107
// Verify the proof on-chain
108108
// slice the proof to remove length information
109-
const result = await contract.verify(proof.slice(4), input.y);
109+
const result = await contract.verify(proof, input.y);
110110
expect(result).to.eq(true);
111111

112112
// You can also verify in JavaScript.

test/noir.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ describe("Integration tests examples", function () {
6565
expect(BigInt(publicInputs[0])).to.eq(BigInt(input.y));
6666

6767
// Verify the proof on-chain
68-
const result = await contract.verify(proof.slice(4), input.y);
68+
const result = await contract.verify(proof, input.y);
6969
expect(result).to.eq(true);
7070

7171
// You can also verify in JavaScript.

0 commit comments

Comments
 (0)