Closed RogerHsiehNCNCCU closed 6 years ago
Or the way I try to use multiple chaincode is wrong? Are there other ways to install and instantiate multiple chaincode with go sdk?
Hello @a037580238,
It easier for us to help you if you can share with us your exploitation system and Go version.
However, from what I can see, you are calling err2 := fSetup2.InstallAndInstantiateCC()
without initializing it (you commented the call to Initialization part).
You should keep only one FabricSetup, add a parameter to the function InstallAndInstantiateCC and pass it a structure which contain info on the chaincode you want to install and instantiate.
I hope it will help :smiley:
It works! Thanks a lot!
main.go
I try to install and instantiate multiple chaincode, but some error happened.
Thanks!