0

I'm following the Hyperledger Fabric Doc, network.sh up and network.sh createChannel is running successfully.

But when I run ./network.sh deployCC it's giving the below error

No chaincode name was provided. Valid call example: ./network.sh deployCC -ccn basic -ccp ../asset-transfer-basic/chaincode-go -ccl go
Deploying chaincode failed

error

Brian Tompsett - 汤莱恩
  • 5,753
  • 72
  • 57
  • 129
Jeff Zhu
  • 3
  • 1
  • Hey and welcome Jeff. Please share the content of `network.sh`. Also share the error message as text not as image. – KargWare Dec 24 '20 at 07:27

2 Answers2

0

It seems like no default value is set for the chaincode name. You can specify the chaincode name using the flag ccn in ./network.sh deployCC command. e.g. ./network.sh deployCC -ccn test_chaincode.

You might have to provide values for other flags as well like for flag ccp which is chaincode path etc. Have a look at the list of all the flags here or you can just simply run ./network.sh -h to print the script help text.

Kartik Chauhan
  • 2,779
  • 5
  • 28
  • 39
  • yes. I used command "./network.sh deployCC -ccn basic -ccp ../asset-transfer-basic/chaincode-go -ccl go" , it success. Thank you very much. and if met " Error: failed to normalize chaincode path: 'go list' failed with: go: github.com/golang/protobuf@v1.3.2 " issue. Maybe to replace goproxy by "go env -w GOPROXY=https://goproxy.cn,direct" . – Jeff Zhu Dec 28 '20 at 12:17
0

need to provide a chaincode name or set a default chaincode name in deployCC script file.