Skip to content

Commit

Permalink
added query.js to query chaincode
Browse files Browse the repository at this point in the history
  • Loading branch information
MCLDG committed Mar 21, 2019
1 parent 37ae04b commit 3017645
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions admin-api/invoke.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@ var invokeChaincode = async function(peerNames, channelName, chaincodeName, args
chaincodeName, fcn, channelName, orgName));
logger.info('##### invokeChaincode - arguments %s', JSON.stringify(args));
args = JSON.stringify(args);
args = args.replace('{', '[');
args = args.replace('}', ']');
logger.info('##### invokeChaincode - arguments %s', JSON.stringify(args));
args = args.replace('{"', '');
args = args.replace('":""}', ']');
logger.info('##### invokeChaincode - arguments %s', args);
var error_message = null;
var txIdAsString = null;
try {
Expand All @@ -48,7 +48,7 @@ var invokeChaincode = async function(peerNames, channelName, chaincodeName, args
targets: peerNames,
chaincodeId: chaincodeName,
fcn: fcn,
args: JSON.stringify(args),
args: args,
chainId: channelName,
txId: txId
};
Expand Down

0 comments on commit 3017645

Please sign in to comment.