Skip to content

Commit

Permalink
fix: storePeerDID is async, this makes async databases hard to use.
Browse files Browse the repository at this point in the history
Signed-off-by: Francisco Javier Ribó Labrador <[email protected]>
  • Loading branch information
elribonazo committed Dec 9, 2023
1 parent 6ad54bd commit 713119b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/prism-agent/Agent.DIDHigherFunctions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ export class AgentDIDHigherFunctions implements AgentDIDHigherFunctionsClass {
protected manager: ConnectionsManager,
protected mediationHandler: MediatorHandler,
protected seed: Seed
) {}
) { }

/**
* Asyncronously sign with a DID
Expand Down Expand Up @@ -117,7 +117,7 @@ export class AgentDIDHigherFunctions implements AgentDIDHigherFunctionsClass {
await this.mediationHandler.updateKeyListWithDIDs([did]);
}

this.pluto.storePeerDID(did, [
await this.pluto.storePeerDID(did, [
keyAgreementPrivateKey,
authenticationPrivateKey,
]);
Expand Down

0 comments on commit 713119b

Please sign in to comment.