Skip to content

Commit

Permalink
[FAB-8736] Fixes undefined methods in BlockDecoder
Browse files Browse the repository at this point in the history
- Corrects undefined method for Identifier()
- Updates incorrect return value in decodeSigningIdentityInfo()

Change-Id: I376291c60bdbde467d5b68eb46624d4d2c2d5287
Signed-off-by: Sudheesh Singanamalla <[email protected]>
  • Loading branch information
sudheesh001 committed Mar 9, 2018
1 parent 000526d commit be13eb8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions fabric-client/lib/BlockDecoder.js
Original file line number Diff line number Diff line change
Expand Up @@ -949,7 +949,7 @@ function decodeMSPPrincipal(proto_msp_principal) {
break;
case _mspPrProto.MSPPrincipal.Classification.ORGANIZATION_UNIT:
proto_principal = _mspPrProto.OrganizationUnit.decode(proto_msp_principal.getPrincipal());
msp_principal.msp_identifier = proto_principal.getMspIdendifier(); //string
msp_principal.msp_identifier = proto_principal.getMspIdentifier(); //string
msp_principal.organizational_unit_identifier = proto_principal.getOrganizationalUnitIdentifier(); //string
msp_principal.certifiers_identifier = proto_principal.getCertifiersIdentifier().toBuffer(); //bytes
break;
Expand Down Expand Up @@ -1044,7 +1044,7 @@ function decodeSigningIdentityInfo(signing_identity_info_bytes) {
signing_identity_info.private_signer = decodeKeyInfo(proto_signing_identity_info.getPrivateSigner());
}

return signing_identity_info_bytes;
return signing_identity_info;
}

function decodeKeyInfo(key_info_bytes) {
Expand Down

0 comments on commit be13eb8

Please sign in to comment.