diff --git a/circuit/js/src/circuitRunner.ts b/circuit/js/src/circuitRunner.ts index 9fd7ef21..559c1e05 100644 --- a/circuit/js/src/circuitRunner.ts +++ b/circuit/js/src/circuitRunner.ts @@ -93,12 +93,12 @@ const padInstances = () => { const numDataInstances = dataInstances.length; for (let i = numUserInstances; i < USER_COMPUTE_NUM_INSTANCES; i++) { - let witness = halo2Lib.witness("0"); + let witness = halo2Lib.constant("0"); userInstances.push(witness); } for (let i = numDataInstances; i < SUBQUERY_NUM_INSTANCES; i++) { - let witness = halo2Lib.witness("0"); + let witness = halo2Lib.constant("0"); dataInstances.push(witness); } diff --git a/circuit/js/src/subquery/data.ts b/circuit/js/src/subquery/data.ts index 50ac6b2d..436c5808 100644 --- a/circuit/js/src/subquery/data.ts +++ b/circuit/js/src/subquery/data.ts @@ -64,7 +64,7 @@ export const prepData = async (dataSubquery: DataSubquery, queryArr: CircuitValu let paddedQueryArr = [circuitType, ...queryArr]; for (let i = queryArr.length; i < 13; i++) { - paddedQueryArr.push(getCircuitValueWitness(0)); + paddedQueryArr.push(getCircuitValueConstant(0)); } paddedQueryArr.push(witness.hi()); paddedQueryArr.push(witness.lo());