diff --git a/scripts/check_deps.sh b/scripts/check_deps.sh index 1c3c7567f..e9b260fe9 100755 --- a/scripts/check_deps.sh +++ b/scripts/check_deps.sh @@ -16,6 +16,10 @@ git merge-base --is-ancestor "$INTEROP_COMMIT" HEAD || die "pkg/interop commit $INTEROP_COMMIT was not found in git" for dir in examples/*/; do + if [ -z "${dir#*zkp/}" ]; then + continue + fi + INTEROP_COMMIT="$(sed -E -n -e 's/.*pkg\/interop.+-.+-(\w+)/\1/ p' "$dir/go.mod")" git merge-base --is-ancestor "$INTEROP_COMMIT" HEAD || die "$dir: pkg/interop commit $INTEROP_COMMIT was not found in git" diff --git a/scripts/update_deps.sh b/scripts/update_deps.sh index 5a1d71028..4b939af6c 100755 --- a/scripts/update_deps.sh +++ b/scripts/update_deps.sh @@ -18,6 +18,12 @@ for dir in "$root"/examples/*/; do go mod tidy done +for dir in "$root"/examples/zkp/*/; do + cd "$dir" || exit 1 + go get github.com/nspcc-dev/neo-go/pkg/interop@"$REV" + go mod tidy +done + cd "$root"/internal/contracts/oracle_contract || exit 1 go get github.com/nspcc-dev/neo-go/pkg/interop@"$REV" go mod tidy