|
|
@ -12,7 +12,9 @@ export function WitnessSection ({ plugin, signalInputs, status }: {plugin: Circo |
|
|
|
let value = e.target.value |
|
|
|
let value = e.target.value |
|
|
|
|
|
|
|
|
|
|
|
try { |
|
|
|
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) { |
|
|
|
} catch (e) { |
|
|
|
// do nothing
|
|
|
|
// do nothing
|
|
|
|
} |
|
|
|
} |
|
|
|