Skip to content

Commit

Permalink
init function does not exist on fabcar (#141)
Browse files Browse the repository at this point in the history
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 <woodyjon@gmail.com>
  • Loading branch information
woodyjon committed Mar 27, 2020
1 parent defb6bb commit 1f283fc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test-network/scripts/deployCC.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 1f283fc

Please sign in to comment.