Skip to content

Commit

Permalink
node-SDK: Fix hfc getChain with create true error
Browse files Browse the repository at this point in the history
The function getChain(chainName, create) uses
an undefined variable "name" when calling
chain = newChain(name).
https://jira.hyperledger.org/browse/FAB-128

Change-Id: Ic8b255bd2888bc3d90f3f09322aacb4bf1687f69
Signed-off-by: Caroline Daughtrey <cdaughtr@us.ibm.com>
  • Loading branch information
cdaughtr committed Aug 31, 2016
1 parent 9e3bfde commit 23a5f24
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sdk/node/src/hfc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2692,7 +2692,7 @@ export function newChain(name) {
export function getChain(chainName, create) {
let chain = _chains[chainName];
if (!chain && create) {
chain = newChain(name);
chain = newChain(chainName);
}
return chain;
}
Expand Down

0 comments on commit 23a5f24

Please sign in to comment.