mirror of
https://github.com/hyperledger/fabric-samples.git
synced 2026-06-17 15:35:09 +00:00
init function does not exist on fabcar (#141)
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>
This commit is contained in:
parent
defb6bbbc0
commit
1f283fc698
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue