Skip to content

Commit d87662e

Browse files
author
Mr. Angry
committed
Remove references to "account" in SDK
Remove remaining references to "account" parameter, which was previous removed from the ECert and the registration request. Change-Id: Ia4233af3f711175910911a3469b29789c5238e44 Signed-off-by: Anna D Derbakova <[email protected]>
1 parent cc111e2 commit d87662e

File tree

1 file changed

+0
-20
lines changed

1 file changed

+0
-20
lines changed

sdk/node/src/hfc.ts

-20
Original file line numberDiff line numberDiff line change
@@ -771,7 +771,6 @@ export class Member {
771771
private chain:Chain;
772772
private name:string;
773773
private roles:string[];
774-
private account:string;
775774
private affiliation:string;
776775
private enrollmentSecret:string;
777776
private enrollment:any;
@@ -793,7 +792,6 @@ export class Member {
793792
let req = cfg;
794793
this.name = req.enrollmentID || req.name;
795794
this.roles = req.roles || ['fabric.user'];
796-
this.account = req.account;
797795
this.affiliation = req.affiliation;
798796
}
799797
this.chain = chain;
@@ -843,22 +841,6 @@ export class Member {
843841
this.roles = roles;
844842
};
845843

846-
/**
847-
* Get the account.
848-
* @returns {string} The account.
849-
*/
850-
getAccount():string {
851-
return this.account;
852-
};
853-
854-
/**
855-
* Set the account.
856-
* @param account The account.
857-
*/
858-
setAccount(account:string):void {
859-
this.account = account;
860-
};
861-
862844
/**
863845
* Get the affiliation.
864846
* @returns {string} The affiliation.
@@ -1117,7 +1099,6 @@ export class Member {
11171099
if (state.name !== this.getName()) throw Error("name mismatch: '" + state.name + "' does not equal '" + this.getName() + "'");
11181100
this.name = state.name;
11191101
this.roles = state.roles;
1120-
this.account = state.account;
11211102
this.affiliation = state.affiliation;
11221103
this.enrollmentSecret = state.enrollmentSecret;
11231104
this.enrollment = state.enrollment;
@@ -1132,7 +1113,6 @@ export class Member {
11321113
let state = {
11331114
name: self.name,
11341115
roles: self.roles,
1135-
account: self.account,
11361116
affiliation: self.affiliation,
11371117
enrollmentSecret: self.enrollmentSecret,
11381118
enrollment: self.enrollment

0 commit comments

Comments
 (0)