nimplay/build.sh

16 lines
270 B
Bash
Raw Normal View History

2019-05-06 19:25:35 +00:00
#!/bin/bash
2019-05-06 19:25:35 +00:00
export WASM_LLVM_BIN="./llvm-wasm/bin/"
function print_contract () {
wasm_file=$1
echo "${wasm_file} eWASM bytecode:"
echo "0x"`xxd -p $wasm_file | tr -d '\n'`
}
nimble examples
if [ $? -eq 0 ]; then
print_contract examples/hello.wasm
fi