【发布时间】:2020-07-29 13:43:51
【问题描述】:
设置构建您的第一个网络 (BYFN),在创建并加入频道后,使用以下 cli 命令在两个组织对等节点上安装链代码 -
peer chaincode install -n mycc -v 1.0 -p github.com/chaincode/chaincode_example02/go/
链码安装成功。
虽然我尝试使用以下命令从 CLI 实例化链码 given by HLF document.
在 Hyperledger Fabric v 1.4 中实例化链码时发生以下错误。
root@8804d95b7083:/opt/gopath/src/github.com/hyperledger/fabric/peer# peer chaincode instantiate -o orderer.example.com:7050 --tls --cafile /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/ordererOrganizations/example.com/orderers/orderer.example.com/msp/tlscacerts/tlsca.example.com-cert.pem -C $CHANNEL_NAME -n mycc -v 1.0 -c '{"Args":["init","a", "100", "b","200"]}' -P "AND ('Org1MSP.peer','Org2MSP.peer')"
Error: must supply value for chaincode name parameter
Usage:
peer chaincode instantiate [flags]
Flags:
-C, --channelID string The channel on which this command should be executed
--collections-config string The fully qualified path to the collection JSON file including the file name
除了重新设置网络之外,还有其他解决此错误的方法吗?
【问题讨论】:
标签: hyperledger-fabric hyperledger-chaincode