Skip to content

Commit

Permalink
Add update_crate script
Browse files Browse the repository at this point in the history
  • Loading branch information
webmaster128 committed Mar 2, 2023
1 parent 32f308a commit 3bee042
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions devtools/update_crate.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#!/bin/bash
set -o errexit -o nounset -o pipefail
command -v shellcheck >/dev/null && shellcheck "$0"

CRATE_NAME="$1"

# Update root Cargo.lock
cargo update -p "$CRATE_NAME"

for contract_dir in contracts/*/; do
(
cd "$contract_dir"
cargo update -p "$CRATE_NAME"
)
done

0 comments on commit 3bee042

Please sign in to comment.