Skip to content

Commit 4dc7c9a

Browse files
committed
#1 typing
1 parent 3591897 commit 4dc7c9a

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

chaincode/javascript/lib/helper.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ class Helper extends Contract {
1313
}
1414

1515
getCreatorId(ctx) {
16-
const clientId = ctx.clientIdentity.id;
17-
const mspId = ctx.clientIdentity.mspId;
16+
const clientId = ctx.clientIdentity.getID();
17+
const mspId = ctx.clientIdentity.getMSPID();
1818
const id = `${mspId}::${clientId}`;
1919
return id;
2020
}

chaincode/typescript/lib/helper.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ export class Helper extends Contract {
1313
}
1414

1515
public getCreatorId(ctx: Context): string {
16-
const clientId = ctx.clientIdentity.id;
17-
const mspId = ctx.clientIdentity.mspId;
16+
const clientId = ctx.clientIdentity.getID();
17+
const mspId = ctx.clientIdentity.getMSPID();
1818
const id = `${mspId}::${clientId}`;
1919
return id;
2020
}

chaincode/typescript/package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "blockotus-organ-helper",
3-
"version": "0.1.3-beta",
3+
"version": "0.2.0-alpha",
44
"description": "",
55
"main": "index.js",
66
"scripts": {

0 commit comments

Comments
 (0)