0
votes

I am studying Hyperledger composer and trying out various samples .

The example i am trying out is similar to Using two business cards in the same composer rest server configuration

There is a single script file in the business network (trade-network.bna) that has the business logic , and hence is the chaincode/smart contract for adding / updating asset in the ledger.

Also the fabric network on top of which composer runs on has the GO lang chaincode .

Is there a way to run multiple scripts in hyperledger composer or a way to run multiple chaincodes . Any workarounds or suggestions

Thanks .

2

2 Answers

1
votes

Actually i think is not possible to use a single .bna to create different chaincodes. The ratio between chaincode and business network archives (bna) is one to one. If you want to run different chaincodes you must install different .bna to your peers.