Skip to content

Commit

Permalink
exp
Browse files Browse the repository at this point in the history
  • Loading branch information
Maddiaa0 committed Nov 4, 2023
1 parent b05f085 commit df8f77d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion barretenberg/acir_tests/flows/sol.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit df8f77d

Please sign in to comment.