Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: remove extra number from return type of acirGetCircuitSizes #9493

Merged
merged 1 commit into from
Nov 1, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 2 additions & 5 deletions barretenberg/ts/src/barretenberg_api/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -328,10 +328,7 @@ export class BarretenbergApi {
return;
}

async acirGetCircuitSizes(
constraintSystemBuf: Uint8Array,
honkRecursion: boolean,
): Promise<[number, number, number]> {
async acirGetCircuitSizes(constraintSystemBuf: Uint8Array, honkRecursion: boolean): Promise<[number, number]> {
const inArgs = [constraintSystemBuf, honkRecursion].map(serializeBufferable);
const outTypes: OutputType[] = [NumberDeserializer(), NumberDeserializer()];
const result = await this.wasm.callWasmExport(
Expand All @@ -340,7 +337,7 @@ export class BarretenbergApi {
outTypes.map(t => t.SIZE_IN_BYTES),
);
const out = result.map((r, i) => outTypes[i].fromBuffer(r));
return out as any;
return out as [number, number];
}

async acirNewAcirComposer(sizeHint: number): Promise<Ptr> {
Expand Down
Loading