Skip to content

Commit

Permalink
Change tezos-client command line
Browse files Browse the repository at this point in the history
  • Loading branch information
mebsout committed Jul 6, 2018
1 parent 367c761 commit 76ea464
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions check-mini.sh
Expand Up @@ -13,7 +13,7 @@ LIQUIDITY=liquidity
./_obuild/${LIQUIDITY}-mini/${LIQUIDITY}-mini.asm tests/$test.liq || exit 2

if [ -f ${TEZOS_FULL_PATH} ] ; then
${TEZOS_FULL_PATH} ${TEZOS_ARGS} typecheck program tests/$test.liq.tz
${TEZOS_FULL_PATH} ${TEZOS_ARGS} typecheck script tests/$test.liq.tz
else
echo "\n${RED}${TEZOS_FULL_PATH} not present ! typechecking of tests/$test.liq.tz skipped${DEFAULT}\n"
fi
Expand All @@ -23,7 +23,7 @@ fi
./_obuild/${LIQUIDITY}-mini/${LIQUIDITY}-mini.asm tests/$test.liq.tz.liq || exit 2

if [ -f ${TEZOS_FULL_PATH} ] ; then
${TEZOS_FULL_PATH} ${TEZOS_ARGS} typecheck program tests/$test.liq.tz.liq.tz
${TEZOS_FULL_PATH} ${TEZOS_ARGS} typecheck script tests/$test.liq.tz.liq.tz
else
echo "\n${RED}${TEZOS_FULL_PATH} not present ! typechecking of tests/$test.liq.tz.liq.tz skipped${DEFAULT}\n"
fi
4 changes: 2 additions & 2 deletions check-rev.sh
Expand Up @@ -15,7 +15,7 @@ echo "\n[check-rev.sh] test = $test, TESTDIR = $TESTDIR"

if [ -f ${TEZOS_FULL_PATH} ] ; then
echo "Testing $test.tz ---------------------------------------------"
${TEZOS_FULL_PATH} ${TEZOS_ARGS} typecheck program $TESTDIR/$test.tz
${TEZOS_FULL_PATH} ${TEZOS_ARGS} typecheck script $TESTDIR/$test.tz
else
echo "\n${RED}${TEZOS_FULL_PATH} not present ! typechecking of $TESTDIR/$test.tz skipped${DEFAULT}\n"
fi
Expand All @@ -28,7 +28,7 @@ echo "Compiling $test.tz.liq ---------------------------------------"

if [ -f ${TEZOS_FULL_PATH} ] ; then
echo "Testing $test.tz.liq.tz --------------------------------------"
${TEZOS_FULL_PATH} ${TEZOS_ARGS} typecheck program $TESTDIR/$test.tz.liq.tz || exit 2
${TEZOS_FULL_PATH} ${TEZOS_ARGS} typecheck script $TESTDIR/$test.tz.liq.tz || exit 2
else
echo "\n${RED}${TEZOS_FULL_PATH} not present ! typechecking of $TESTDIR/$test.tz.liq.tz skipped${DEFAULT}\n"
fi
Expand Down
4 changes: 2 additions & 2 deletions check.sh
Expand Up @@ -17,7 +17,7 @@ echo ${LIQEXEC} tests/$test.liq
${LIQEXEC} tests/$test.liq || exit 2

if [ -f ${TEZOS_FULL_PATH} ] ; then
${TEZOS_FULL_PATH} ${TEZOS_ARGS} typecheck program tests/$test.liq.tz || exit 2
${TEZOS_FULL_PATH} ${TEZOS_ARGS} typecheck script tests/$test.liq.tz || exit 2
else
echo "\n${RED}${TEZOS_FULL_PATH} not present ! typechecking of tests/$test.liq.tz skipped${DEFAULT}\n"
fi
Expand All @@ -29,7 +29,7 @@ echo ${LIQEXEC} tests/$test.liq.tz.liq
${LIQEXEC} tests/$test.liq.tz.liq || exit 2

if [ -f ${TEZOS_FULL_PATH} ] ; then
${TEZOS_FULL_PATH} ${TEZOS_ARGS} typecheck program tests/$test.liq.tz.liq.tz || exit 2
${TEZOS_FULL_PATH} ${TEZOS_ARGS} typecheck script tests/$test.liq.tz.liq.tz || exit 2
else
echo "\n${RED}${TEZOS_FULL_PATH} not present ! typechecking of tests/$test.liq.tz.liq.tz skipped${DEFAULT}\n"
fi
Expand Down
4 changes: 2 additions & 2 deletions tests/test19.liq
Expand Up @@ -13,8 +13,8 @@ let%entry main
Current.failwith ();
if key_hash =
Crypto.hash_key edpkuTXkJDGcFd5nh6VvMz8phXxU3Bi7h6hqgywNFi1vZTfQNnS1RV then
Current.faiwithl ();
let delegate = Contract.manager (Current.source ()) in
Current.failwith ();
let delegate = Contract.sender () in
let spendable = Crypto.check storage.key parameter storage.hash in
let amount = Current.amount () in
let amount = match amount / 2p with
Expand Down
2 changes: 1 addition & 1 deletion tools/liquidity/liquidMain.ml
Expand Up @@ -90,7 +90,7 @@ let compile_liquid_file filename =
FileString.write_file output s;
Printf.eprintf "File %S generated\n%!" output;
Printf.eprintf "If tezos is compiled, you may want to typecheck with:\n";
Printf.eprintf " tezos-client typecheck program %s\n" output
Printf.eprintf " tezos-client typecheck script %s\n" output


let compile_tezos_file filename =
Expand Down

0 comments on commit 76ea464

Please sign in to comment.