Skip to content

Commit

Permalink
Merge "FABN-1238 NodeSDK Add chaincode cnstr"
Browse files Browse the repository at this point in the history
  • Loading branch information
andrew-coleman authored and Gerrit Code Review committed May 20, 2019
2 parents 7fa33bd + 96afa09 commit 89cefd3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions fabric-client/lib/Client.js
Original file line number Diff line number Diff line change
Expand Up @@ -1982,3 +1982,4 @@ module.exports.Orderer = Orderer;
module.exports.Channel = Channel;
module.exports.User = User;
module.exports.Package = Package;
module.exports.Chaincode = Chaincode;
4 changes: 2 additions & 2 deletions test/typescript/test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -87,8 +87,8 @@ test('\n\n ** test TypeScript **', (t: any) => {
const ceh = new ChannelEventHub(channel, p);
t.equal(ceh.constructor.name, 'ChannelEventHub');

//let cc: Chaincode = new Chaincode('name', 'version', client);
//t.equal(cc.constructor.name, 'Chaincode');
const cc: Chaincode = new Chaincode('name', 'version', client);
t.equal(cc.constructor.name, 'Chaincode');
const cc2: Chaincode = client.newChaincode('name', 'version');
t.equal(cc2.constructor.name, 'Chaincode');

Expand Down

0 comments on commit 89cefd3

Please sign in to comment.