From 9e466bab04b436df733dcfdea64f12e1578214cd 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: Jonathan Gross Signed-off-by: Jon 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 cbbd0aaf..94880b15 100755 --- a/test-network/scripts/deployCC.sh +++ b/test-network/scripts/deployCC.sh @@ -222,7 +222,7 @@ chaincodeInvokeInit() { 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