Merge branch 'master' of https://github.com/ethereum/remix-project into desktope2e

pull/4837/head
filip mertens 10 months ago
commit 92375194b0
  1. 16
      apps/circuit-compiler/src/app/components/witness.tsx

@ -12,10 +12,20 @@ export function WitnessSection ({ plugin, signalInputs, status }: {plugin: Circo
const handleSignalInput = (e: any) => { const handleSignalInput = (e: any) => {
let value = e.target.value let value = e.target.value
try { if (value.startsWith('[') && value.endsWith(']')) {
value = remixLib.execution.txFormat.parseFunctionParams(value) try {
} catch (e) { value = remixLib.execution.txFormat.parseFunctionParams(value)
} catch (e) {
// do nothing // do nothing
}
} else if (value.startsWith('[') && !value.endsWith(']')) {
// do nothing
} else {
try {
value = remixLib.execution.txFormat.parseFunctionParams(value)
} catch (e) {
// do nothing
}
} }
setWitnessValues({ setWitnessValues({
...witnessValues, ...witnessValues,

Loading…
Cancel
Save