diff --git a/apps/circuit-compiler/src/app/components/witness.tsx b/apps/circuit-compiler/src/app/components/witness.tsx index 3b45b52ea4..86e933148b 100644 --- a/apps/circuit-compiler/src/app/components/witness.tsx +++ b/apps/circuit-compiler/src/app/components/witness.tsx @@ -12,7 +12,9 @@ export function WitnessSection ({ plugin, signalInputs, status }: {plugin: Circo let value = e.target.value try { - value = JSON.parse(JSON.stringify(value, (key, value) => typeof value === 'bigint' ? value.toString() : value)) + value = JSON.parse(value) + + if (!Array.isArray(value)) throw new Error('Invalid JSON') } catch (e) { // do nothing }