From 1426592e7b9a9e24075fbff28967c5b11249cb40 Mon Sep 17 00:00:00 2001 From: woodyjon <30724004+woodyjon@users.noreply.github.com> Date: Thu, 13 Feb 2020 16:43:53 +0100 Subject: [PATCH] init function does not exist, it is actually the initLedger the correct one It was actually the other way around, it is the no TLS line which was wrong and should have ready `initLedger` instead of `init`. Signed-off-by: Jon Signed-off-by: Jonathan Gross --- test-network/scripts/deployCC.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test-network/scripts/deployCC.sh b/test-network/scripts/deployCC.sh index 725b86cf..94880b15 100755 --- a/test-network/scripts/deployCC.sh +++ b/test-network/scripts/deployCC.sh @@ -217,12 +217,12 @@ 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 set -x - peer chaincode invoke -o localhost:7050 --ordererTLSHostnameOverride orderer.example.com --tls $CORE_PEER_TLS_ENABLED --cafile $ORDERER_CA -C $CHANNEL_NAME -n fabcar $PEER_CONN_PARMS --isInit -c '{"function":"init","Args":[]}' >&log.txt + peer chaincode invoke -o localhost:7050 --ordererTLSHostnameOverride orderer.example.com --tls $CORE_PEER_TLS_ENABLED --cafile $ORDERER_CA -C $CHANNEL_NAME -n fabcar $PEER_CONN_PARMS --isInit -c '{"function":"initLedger","Args":[]}' >&log.txt res=$? set +x fi