From df8f77d3103852d46a8a3cbd797871bc33e423da Mon Sep 17 00:00:00 2001 From: Maddiaa0 <47148561+Maddiaa0@users.noreply.github.com> Date: Sat, 4 Nov 2023 01:51:15 +0000 Subject: [PATCH] exp --- barretenberg/acir_tests/flows/sol.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/barretenberg/acir_tests/flows/sol.sh b/barretenberg/acir_tests/flows/sol.sh index 47a782a8d753..3b66110f9f25 100755 --- a/barretenberg/acir_tests/flows/sol.sh +++ b/barretenberg/acir_tests/flows/sol.sh @@ -6,7 +6,7 @@ export PROOF_AS_FIELDS="$(pwd)/proof_fields.json" # Get the number of public inputs in the circuit gates=$($BIN gates -v 2>&1 | tr -d '\0') -NUM_PUBLIC_INPUTS=$(echo "$gates" | grep -o 'public inputs: [0-9]*' | awk '{print $3}') +NUM_PUBLIC_INPUTS=$(echo "$gates" | awk '/public inputs: [0-9]+/ {print $3}') echo "Number of public inputs: $NUM_PUBLIC_INPUTS" # Create a proof, write the solidity contract, write the proof as fields in order to extract the public inputs