Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
csgui committed Jul 1, 2024
1 parent 9b349ff commit 702927e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion clar2wasm/scripts/boot-contracts-compile.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
#!/bin/bash

BOOT_CONTRACTS_PATH="./tests/contracts/boot-contracts"
CLAR2WASM_PATH="../target/debug/clar2wasm"

declare -a boot_contracts=(
bns.clar
cost-voting.clar
Expand Down Expand Up @@ -29,7 +31,7 @@ cat "${BOOT_CONTRACTS_PATH}/pox-testnet.clar" "${BOOT_CONTRACTS_PATH}/pox-3.clar

for contract in ${boot_contracts[@]}; do
echo "Compiling $contract file..."
../target/debug/clar2wasm "${BOOT_CONTRACTS_PATH}/$contract"
"${CLAR2WASM_PATH}" "${BOOT_CONTRACTS_PATH}/$contract"

if [ $? == 0 ]; then
echo "Success"
Expand Down

0 comments on commit 702927e

Please sign in to comment.