Skip to content

Commit 3bee042

Browse files
committed
Add update_crate script
1 parent 32f308a commit 3bee042

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

devtools/update_crate.sh

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
#!/bin/bash
2+
set -o errexit -o nounset -o pipefail
3+
command -v shellcheck >/dev/null && shellcheck "$0"
4+
5+
CRATE_NAME="$1"
6+
7+
# Update root Cargo.lock
8+
cargo update -p "$CRATE_NAME"
9+
10+
for contract_dir in contracts/*/; do
11+
(
12+
cd "$contract_dir"
13+
cargo update -p "$CRATE_NAME"
14+
)
15+
done

0 commit comments

Comments
 (0)