mirror of
https://github.com/hyperledger/fabric-samples.git
synced 2026-06-17 07:25:10 +00:00
Update asset_transfer_ledger_chaincode.js (#452)
fabric 2.x use **txId ** in res.value Signed-off-by: yuppieghost <wjj315315@gmail.com>
This commit is contained in:
parent
5e933c10cb
commit
04806b604d
1 changed files with 1 additions and 1 deletions
|
|
@ -320,7 +320,7 @@ class Chaincode extends Contract {
|
|||
let jsonRes = {};
|
||||
console.log(res.value.value.toString('utf8'));
|
||||
if (isHistory && isHistory === true) {
|
||||
jsonRes.TxId = res.value.tx_id;
|
||||
jsonRes.TxId = res.value.txId;
|
||||
jsonRes.Timestamp = res.value.timestamp;
|
||||
try {
|
||||
jsonRes.Value = JSON.parse(res.value.value.toString('utf8'));
|
||||
|
|
|
|||
Loading…
Reference in a new issue