我们可以在Hyperledger Composer中修改交易记录吗

时间:2018-06-30 06:11:05

标签: hyperledger-fabric hyperledger hyperledger-composer

我有一个名为 updatewarranty 的事务处理程序。在该 updatewarranty 交易中,我正在更新一种称为保修的资产。 这是我的json

{
"$class": "org.network.warranty.Transfer",
"TransferId": "9427",
"AuthKey": "",
"TransferDate": "2018-06-30T05:50:32.767Z",
"customer": {
"$class": "org.network.warranty.Customer",
"CustomerId": "2599",
"Address1": "",
"Address2": "",
"Authkey": "",
"City": "",
"Country": "",
"Email": "",
"Mobile": "",
"State": "",
"UserType": 0
 },
"retailer": {
"$class": "org.network.warranty.Retailer",
"RetailerId": "8389",
"Address1": "",
"Address2": "",
"Authkey": "",
"City": "",
"Country": "",
"Email": "",
"Mobile": "",
"State": "",
"UserType": 0
 },
 "warranty": {
 "$class": "org.network.warranty.Warranty",
 "WarrentyId": "0766",
 "End_Date": "2018-06-30T05:50:32.767Z",
 "Start_Date": "2018-06-30T05:50:32.767Z",
 "IS_Internationaly_Valid": "",
 "Item_QRCode": ""
 }
 }

我有一个名为 getwarranty 的交易,该交易将保修ID作为输入。 这是我的json

{
"$class": "org.network.warranty.getWarranty",
"warranty": "resource:org.network.warranty.Warranty#0766"
}

当我看到getwarranty的交易记录时,我没有完整的转移记录。我只有这些信息

{
"$class": "org.network.warranty.getWarranty",
"warranty": "resource:org.network.warranty.Warranty#0766",
"transactionId": "6e35c9cb-d3a6-41d8-8c95-fa22c7681824",
"timestamp": "2018-06-30T05:50:54.851Z"
 }

我如何获得保修资产?

0 个答案:

没有答案