From 47a43936df61dcbac1cd4fc2c2f8da5eeaaa67a4 Mon Sep 17 00:00:00 2001 From: Jon Date: Fri, 27 Mar 2020 16:05:07 +0100 Subject: [PATCH] init function does not exist on fabcar initLedger must be called instead of init, that does not exist. That also keeps consistency between the "with TLS" and "withtout" TLS cases. Signed-off-by: Jonathan Gross --- test-network/scripts/deployCC.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test-network/scripts/deployCC.sh b/test-network/scripts/deployCC.sh index 80173053..13578982 100755 --- a/test-network/scripts/deployCC.sh +++ b/test-network/scripts/deployCC.sh @@ -216,7 +216,7 @@ chaincodeInvokeInit() { # it using the "-o" option if [ -z "$CORE_PEER_TLS_ENABLED" -o "$CORE_PEER_TLS_ENABLED" = "false" ]; then set -x - peer chaincode invoke -o localhost:7050 -C $CHANNEL_NAME -n fabcar $PEER_CONN_PARMS --isInit -c '{"function":"init","Args":[]}' >&log.txt + peer chaincode invoke -o localhost:7050 -C $CHANNEL_NAME -n fabcar $PEER_CONN_PARMS --isInit -c '{"function":"initLedger","Args":[]}' >&log.txt res=$? set +x else