Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updated enrollUser function in write_first_app tutorial #2713

Merged
merged 1 commit into from
Jul 7, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/source/write_first_app.rst
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,7 @@ to interact with the blockchain network. The section of the application code is

// in a real application this would be done only when a new user was required to be added
// and would be part of an administrative flow
await registerUser(caClient, wallet, userId, 'org1.department1');
await registerAndEnrollUser(caClient, wallet, mspOrg1, org1UserId, 'org1.department1');

Similar to the admin enrollment, this function uses a CSR to register and enroll ``appUser`` and
store its credentials alongside those of ``admin`` in the wallet. We now have
Expand Down