#fabric-chaincode #fabric-chaincode


nothingshy001@...
 

How to deploy multi contracts in one chaincode package?
In single contract examples, there is a main() function starts the defined contracts by shim.Start().
In multi contracts scenario, do I need to start every contract in main() function? 


Nidhi Singh
 

Hi,

No, you don't have to start each contract individually in the main() function.

In the Contract.NewChaincode() pass the multiple Contracts.


Thanks,
Nidhi Singh


On Tue, Mar 30, 2021, 12:02 PM <nothingshy001@...> wrote:
How to deploy multi contracts in one chaincode package?
In single contract examples, there is a main() function starts the defined contracts by shim.Start().
In multi contracts scenario, do I need to start every contract in main() function?