Skip to content

Commit

Permalink
fix: wait for add role operation done
Browse files Browse the repository at this point in the history
  • Loading branch information
Sotatek-HocNguyena committed Apr 17, 2024
1 parent 013e669 commit 5b5348c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/core/agent/modules/signify/signifyApi.ts
Expand Up @@ -86,13 +86,14 @@ export class SignifyApi {
.identifiers()
.create(signifyName); //, this.getCreateAidOptions());
await operation.op();
await this.signifyClient
const addRoleOperation = await this.signifyClient
.identifiers()
.addEndRole(
signifyName,
SignifyApi.DEFAULT_ROLE,
this.signifyClient.agent!.pre
);
await addRoleOperation.op();
return {
signifyName,
identifier: operation.serder.ked.i,
Expand Down

0 comments on commit 5b5348c

Please sign in to comment.