From 6a5bcfd2dc1a2bef6df2b93e9afa137a9b4ea315 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Pedro=20Sousa?= Date: Tue, 17 Dec 2024 10:21:09 +0000 Subject: [PATCH] fix: casting vk to rawbuffer before wasm so it reads from the correct offset (#10769) quick fix for solidity contract --- barretenberg/ts/src/barretenberg/backend.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/barretenberg/ts/src/barretenberg/backend.ts b/barretenberg/ts/src/barretenberg/backend.ts index df541aa7de3..546b6738f6b 100644 --- a/barretenberg/ts/src/barretenberg/backend.ts +++ b/barretenberg/ts/src/barretenberg/backend.ts @@ -255,7 +255,7 @@ export class UltraHonkBackend { await this.instantiate(); const vkBuf = vk ?? (await this.api.acirWriteVkUltraHonk(this.acirUncompressedBytecode, this.circuitOptions.recursive)); - return await this.api.acirHonkSolidityVerifier(this.acirUncompressedBytecode, vkBuf); + return await this.api.acirHonkSolidityVerifier(this.acirUncompressedBytecode, new RawBuffer(vkBuf)); } // TODO(https://github.com/noir-lang/noir/issues/5661): Update this to handle Honk recursive aggregation in the browser once it is ready in the backend itself