Check deployment of call_parameters (#6)

This commit is contained in:
folex
2021-06-13 23:26:30 +03:00
committed by GitHub
parent 3a6be62bde
commit 62faa2fe45
5 changed files with 100 additions and 2 deletions

19
call_parameters/deploy.sh Executable file
View File

@ -0,0 +1,19 @@
#!/bin/bash
set -o errexit -o nounset -o pipefail
if [[ -z "${NODE:-}" ]]; then
NODE_ADDR=""
else
NODE_ADDR="--node-addr $NODE"
fi
./build.sh
# check it .wasm was built
WASM="artifacts/call_parameters.wasm"
test -f "$WASM" || echo >&2 "Couldn't find $WASM"
# create a service from that .wasm
CONFIG="config.json"
SERVICE_ID=$(fldist new_service $NODE_ADDR --modules "$WASM:$CONFIG" --name call_parameters | head -n1 | sed -e 's/service id: //')
echo $SERVICE_ID