mirror of
https://github.com/hyperledger/fabric-samples.git
synced 2026-06-22 17:45:10 +00:00
Merge "[FAB-5913]balance-transfer:Fix query response message"
This commit is contained in:
commit
50cb8d9b1f
1 changed files with 2 additions and 2 deletions
|
|
@ -44,9 +44,9 @@ var queryChaincode = async function(peer, channelName, chaincodeName, args, fcn,
|
||||||
for (let i = 0; i < response_payloads.length; i++) {
|
for (let i = 0; i < response_payloads.length; i++) {
|
||||||
logger.info(args[0]+' now has ' + response_payloads[i].toString('utf8') +
|
logger.info(args[0]+' now has ' + response_payloads[i].toString('utf8') +
|
||||||
' after the move');
|
' after the move');
|
||||||
return args[0]+' now has ' + response_payloads[i].toString('utf8') +
|
|
||||||
' after the move';
|
|
||||||
}
|
}
|
||||||
|
return args[0]+' now has ' + response_payloads[0].toString('utf8') +
|
||||||
|
' after the move';
|
||||||
} else {
|
} else {
|
||||||
logger.error('response_payloads is null');
|
logger.error('response_payloads is null');
|
||||||
return 'response_payloads is null';
|
return 'response_payloads is null';
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue