Re: #fabric-chaincode #fabric-chaincode
David Enyeart
Many people utilize JSON format for assets stored on the ledger, the order items can therefore be a JSON array. Just be careful to utilize deterministic JSON marshaling in your chaincode, as described here: Hi , I am trying to map assets from Hyperledger composer to Hyperledger fabric V2. In Hyperledger composer, there is model defined in .cto file, where I can have, e.g. asset Order identified by orderNumber { o String orderNumber ZjQcmQRYFpfptBannerStart This Message Is From an External Sender This message came from outside your organization. ZjQcmQRYFpfptBannerEnd Hi , I am trying to map assets from Hyperledger composer to Hyperledger fabric V2. In Hyperledger composer, there is model defined in .cto file, where I can have, e.g. asset Order identified by orderNumber { o String orderNumber o String[] items } So the Order has items as an array. How can I achieve this in Hyperledger fabric V2 ? Thx in advance. Trung
|
|