From 95eb2b4e285207199012937678878d6be36d0930 Mon Sep 17 00:00:00 2001 From: feltroid Prime <96737978+feltroidprime@users.noreply.github.com> Date: Mon, 30 Sep 2024 16:21:23 +0200 Subject: [PATCH 1/2] fix: Correct default option handling in garaga_ts::msmCalldataBuilder (#205) --- tools/npm/garaga_ts/src/node/api.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tools/npm/garaga_ts/src/node/api.ts b/tools/npm/garaga_ts/src/node/api.ts index 2e536e24..ae57f404 100644 --- a/tools/npm/garaga_ts/src/node/api.ts +++ b/tools/npm/garaga_ts/src/node/api.ts @@ -21,9 +21,9 @@ export type MsmCalldataBuilderOptons = Partial<{ export function msmCalldataBuilder(points: G1Point[], scalars: bigint[], curveId: CurveId, options: MsmCalldataBuilderOptons = {}): bigint[] { const values = points.reduce((values, point) => values.concat(point), []); - const includeDigitsDecomposition = options.includeDigitsDecomposition || true; - const includePointsAndScalars = options.includePointsAndScalars || true; - const serializeAsPureFelt252Array = options.serializeAsPureFelt252Array || false; - const risc0Mode = options.risc0Mode || false; + const includeDigitsDecomposition = options.includeDigitsDecomposition ?? true; + const includePointsAndScalars = options.includePointsAndScalars ?? true; + const serializeAsPureFelt252Array = options.serializeAsPureFelt252Array ?? false; + const risc0Mode = options.risc0Mode ?? false; return msm_calldata_builder(values, scalars, curveId, includeDigitsDecomposition, includePointsAndScalars, serializeAsPureFelt252Array, risc0Mode); } From 41e1cc01e9e02cb41968d1608891e6fa688d1a40 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 30 Sep 2024 14:27:40 +0000 Subject: [PATCH 2/2] Bump next from 14.2.8 to 14.2.10 in /tools/npm/integration-test-suite/packages/web-js-esm-react (#203) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: feltroid Prime <96737978+feltroidprime@users.noreply.github.com> --- .../packages/web-js-esm-react/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/npm/integration-test-suite/packages/web-js-esm-react/package.json b/tools/npm/integration-test-suite/packages/web-js-esm-react/package.json index 778490b0..b303f0bf 100644 --- a/tools/npm/integration-test-suite/packages/web-js-esm-react/package.json +++ b/tools/npm/integration-test-suite/packages/web-js-esm-react/package.json @@ -9,7 +9,7 @@ }, "dependencies": { "garaga": "file:../../garaga.tgz", - "next": "14.2.8", + "next": "14.2.10", "react": "^18", "react-dom": "^18" },