Skip to content

Commit

Permalink
Merge 325ff2e into 26416b6
Browse files Browse the repository at this point in the history
  • Loading branch information
TomAFrench authored Oct 28, 2024
2 parents 26416b6 + 325ff2e commit 576881a
Showing 1 changed file with 2 additions and 5 deletions.
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

0 comments on commit 576881a

Please sign in to comment.