mirror of
https://github.com/hyperledger/fabric-samples.git
synced 2026-06-17 15:35:09 +00:00
Merge "[FAB-5197]Check all prop-responses in balance-transfer"
This commit is contained in:
commit
0611471e4b
3 changed files with 6 additions and 6 deletions
|
|
@ -47,8 +47,8 @@ var installChaincode = function(peers, chaincodeName, chaincodePath,
|
|||
var all_good = true;
|
||||
for (var i in proposalResponses) {
|
||||
let one_good = false;
|
||||
if (proposalResponses && proposalResponses[0].response &&
|
||||
proposalResponses[0].response.status === 200) {
|
||||
if (proposalResponses && proposalResponses[i].response &&
|
||||
proposalResponses[i].response.status === 200) {
|
||||
one_good = true;
|
||||
logger.info('install proposal was good');
|
||||
} else {
|
||||
|
|
|
|||
|
|
@ -63,8 +63,8 @@ var instantiateChaincode = function(channelName, chaincodeName, chaincodeVersion
|
|||
var all_good = true;
|
||||
for (var i in proposalResponses) {
|
||||
let one_good = false;
|
||||
if (proposalResponses && proposalResponses[0].response &&
|
||||
proposalResponses[0].response.status === 200) {
|
||||
if (proposalResponses && proposalResponses[i].response &&
|
||||
proposalResponses[i].response.status === 200) {
|
||||
one_good = true;
|
||||
logger.info('instantiate proposal was good');
|
||||
} else {
|
||||
|
|
|
|||
|
|
@ -55,8 +55,8 @@ var invokeChaincode = function(peersUrls, channelName, chaincodeName, fcn, args,
|
|||
var all_good = true;
|
||||
for (var i in proposalResponses) {
|
||||
let one_good = false;
|
||||
if (proposalResponses && proposalResponses[0].response &&
|
||||
proposalResponses[0].response.status === 200) {
|
||||
if (proposalResponses && proposalResponses[i].response &&
|
||||
proposalResponses[i].response.status === 200) {
|
||||
one_good = true;
|
||||
logger.info('transaction proposal was good');
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Reference in a new issue