From 95729831fc1931353c6eec6fb9f914cac5c71f24 Mon Sep 17 00:00:00 2001 From: ioedeveloper Date: Thu, 2 Nov 2023 15:16:49 +0100 Subject: [PATCH] Enable compiling a circuit with ctrl + s --- .../src/app/components/r1csBtn.tsx | 1 + .../src/app/components/witness.tsx | 6 ++- .../src/app/components/witnessToggler.tsx | 2 +- apps/remix-ide-e2e/src/tests/circom.test.ts | 47 +++++++++++++++++-- .../src/lib/api/compiler-api.ts | 2 + 5 files changed, 52 insertions(+), 6 deletions(-) diff --git a/apps/circuit-compiler/src/app/components/r1csBtn.tsx b/apps/circuit-compiler/src/app/components/r1csBtn.tsx index 324c61e28a..f2b9b2407f 100644 --- a/apps/circuit-compiler/src/app/components/r1csBtn.tsx +++ b/apps/circuit-compiler/src/app/components/r1csBtn.tsx @@ -12,6 +12,7 @@ export function R1CSBtn () { className="btn btn-secondary btn-block d-block w-100 text-break mb-1 mt-2" onClick={() => { generateR1cs(plugin, appState) }} disabled={(appState.filePath === "") || (appState.status === "compiling") || (appState.status === "generating") || (appState.status === "computing")} + data-id="generate_r1cs_btn" > { input } - + )) }