Skip to content

Commit ca6d4fb

Browse files
authored
Merge pull request #284 from mdqst/patch-1
fix: project creation and compilation path handling
2 parents e0c76bf + c38638b commit ca6d4fb

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

.github/workflows/snarkjs.sh

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,11 @@ CURVE=$2
1111

1212
# Ensure the circuit directory exists and is initialized
1313
echo "Initializing a new Noname package..."
14-
noname new --path circuit_noname
14+
noname new --path "$DIR_PATH/circuit_noname"
1515

1616
# Compile the circuit using Noname CLI
1717
echo "Compiling the circuit using Noname..."
18-
noname run --backend r1cs-$CURVE --path "circuit_noname" \
18+
noname run --backend r1cs-$CURVE --path "$DIR_PATH/circuit_noname" \
1919
--public-inputs '{"xx": "5"}' \
2020
--private-inputs '{"yy": "4"}'
2121

@@ -48,4 +48,3 @@ echo "Exporting Solidity verifier and calldata..."
4848
snarkjs zkey export solidityverifier "test_${CURVE}_0001.zkey" verifier.sol
4949
echo "Calldata to test:"
5050
snarkjs zkey export soliditycalldata public.json proof.json
51-

0 commit comments

Comments
 (0)