From 75ed21d17e7eec9e4ca0e78ae99113a835459109 Mon Sep 17 00:00:00 2001 From: damirka Date: Mon, 29 Mar 2021 11:42:32 +0300 Subject: [PATCH] should work now --- .circleci/leo-check-constraints.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.circleci/leo-check-constraints.sh b/.circleci/leo-check-constraints.sh index dc92232287..a4f049cbed 100755 --- a/.circleci/leo-check-constraints.sh +++ b/.circleci/leo-check-constraints.sh @@ -2,7 +2,7 @@ cd ./project/examples/pedersen-hash -PEDERSEH_HASH_CONSTRAINTS=1539 +export PEDERSEH_HASH_CONSTRAINTS=1539 # 1. build # 2. find lines with constraint number @@ -11,7 +11,7 @@ PEDERSEH_HASH_CONSTRAINTS=1539 # 4.Er if result is 0 -> constraint number changed # 4.Ok if result is 1 -> all good -[[ $($LEO build | grep "Number of constraints" | grep $PEDERSEH_HASH_CONSTRAINTS | wc -l) -eq 0 ]] || { +[[ $($LEO build | grep "Number of constraints" | grep $PEDERSEH_HASH_CONSTRAINTS | wc -l) -eq 1 ]] || { echo >&2 "Number of constraints for Pedersen Hash is not $PEDERSEN_HASH_CONSTRAINTS"; exit 1; }