From 96e6073006374c00bcc8953b2ec585771d9f8367 Mon Sep 17 00:00:00 2001 From: NikVolf Date: Wed, 12 Apr 2017 18:06:03 +0300 Subject: [PATCH] gas utility in builder --- runner/build.sh | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/runner/build.sh b/runner/build.sh index 02e89c9..1a685a4 100755 --- a/runner/build.sh +++ b/runner/build.sh @@ -12,4 +12,11 @@ then else # c/c++ can be compiled directly by emcc emcc $file -Os -s WASM=1 -s SIDE_MODULE=1 -o out/contract.wasm -fi \ No newline at end of file +fi + +if [ ! -f ./../gas/target/release/gas ] && [ ! -f ./../gas/target/release/gas.exe ] then + echo "No gas utility, compile it in /gas folder with" + echo "cargo build --release" +fi + +./../gas/target/release/gas ./out/contract.wasm ./out/contract.wasm \ No newline at end of file