Skip to content

Commit

Permalink
fix: Missing await
Browse files Browse the repository at this point in the history
  • Loading branch information
roderik committed May 14, 2020
1 parent 789a327 commit 9c36f84
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/daf-ethr-did/src/identity-controller.ts
Expand Up @@ -78,7 +78,7 @@ export class IdentityController extends AbstractIdentityController {
const txHash = await ethrDid.setAttribute(attribute, value, ttl, gas)
debug({ txHash })
serializedIdentity.keys.push(key.serialized)
this.identityStore.set(serializedIdentity.did, serializedIdentity)
await this.identityStore.set(serializedIdentity.did, serializedIdentity)
return true
} catch (e) {
debug(e.message)
Expand Down

0 comments on commit 9c36f84

Please sign in to comment.