Refactored C contract lib interface. (#175)

This commit is contained in:
Ravin Perera
2020-11-30 10:03:06 +05:30
committed by GitHub
parent 332e5a4750
commit efbd775fa1
4 changed files with 286 additions and 386 deletions

View File

@@ -18,7 +18,7 @@ hpcore=$(realpath ../..)
if [ "$CONTRACT" = "cecho" ]; then # C echo contract
echo "Using C echo contract."
pushd $hpcore/examples/c_contract/ > /dev/null 2>&1
gcc echo_contract.c -o echo_contract -pthread
gcc echo_contract.c -o echo_contract
popd > /dev/null 2>&1
copyfiles="$hpcore/examples/c_contract/echo_contract"
binary="/contract/bin/echo_contract"