Skip to content

Commit

Permalink
removed legacy config for read function
Browse files Browse the repository at this point in the history
  • Loading branch information
dshuffma-ibm committed Nov 15, 2016
1 parent 3e58530 commit 1c0cc1d
Showing 1 changed file with 16 additions and 15 deletions.
31 changes: 16 additions & 15 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -602,22 +602,23 @@ function read(args, enrollId, cb){
enrollId = ibc.chaincode.details.peers[ibc.selectedPeer].enrollId;
}

var options = {
path: '/devops/query'
};
var options = {path: '/chaincode'};
var body = {
chaincodeSpec: {
type: 'GOLANG',
chaincodeID: {
name: ibc.chaincode.details.deployed_name,
},
ctorMsg: {
function: 'query',
args: args
},
secureContext: enrollId
}
};
jsonrpc: '2.0',
method: 'query',
params: {
type: 1,
chaincodeID:{
name: ibc.chaincode.details.deployed_name
},
ctorMsg: {
function: 'query',
args: args
},
secureContext: enrollId
},
id: Date.now()
};
//logger.log('body', body);
options.success = function(statusCode, data){
logger.log('[ibc-js] (Read) - success:', data);
Expand Down

0 comments on commit 1c0cc1d

Please sign in to comment.