Skip to content

Commit

Permalink
Only enforce chaincodePath for GOLANG
Browse files Browse the repository at this point in the history
Change-Id: I4cdb60df53fd0c3a8d91f70ceb70c20966c884e8
Signed-off-by: Gregory Haskins <[email protected]>
  • Loading branch information
ghaskins committed Feb 27, 2017
1 parent d3fcbe2 commit b32920d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion fabric-client/lib/Chain.js
Original file line number Diff line number Diff line change
Expand Up @@ -1753,7 +1753,10 @@ var Chain = class {
var errorMsg = null;

if (request) {
if(!request.chaincodePath) {
var type = translateCCType(request.chaincodeType);
// FIXME: GOLANG platform on the peer has a bug that requires chaincodePath
// during instantiate. Police this for now until the peer is fixed.
if(type === _ccProto.ChaincodeSpec.Type.GOLANG && !request.chaincodePath) {
errorMsg = 'Missing "chaincodePath" parameter in the proposal request';
}
} else {
Expand Down

0 comments on commit b32920d

Please sign in to comment.