Skip to content

Commit

Permalink
fix(ci): use new check-contract crates
Browse files Browse the repository at this point in the history
  • Loading branch information
bdeneux committed Aug 24, 2022
1 parent 77e3434 commit 58cdf37
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions Makefile.toml
Original file line number Diff line number Diff line change
Expand Up @@ -91,20 +91,12 @@ env = { RUSTFLAGS = "-C link-arg=-s" }

[tasks.check_contracts]
dependencies = ["wasm"]
install_crate = { crate_name = "cw-check-contract" }
script = '''
CHECK_CONTRACT_PATH=$HOME/.cargo/bin/check_contract
echo "🧐 Check if check_contract is already installed in $CHECK_CONTRACT_PATH"
if ! ls $CHECK_CONTRACT_PATH* 1> /dev/null 2>&1; then
echo "🚚 Installing check_contract binary"
cargo install --debug --version 1.0.0 --features iterator --force --example check_contract -- cosmwasm-vm
else
echo "✅ Using $(check_contract --version)"
fi
for W in ./target/wasm32-unknown-unknown/release/*.wasm
do
echo -n "🔎 Checking `basename $W`... "
check_contract $W
cw-check-contract $W
done
'''

Expand Down

0 comments on commit 58cdf37

Please sign in to comment.