Skip to content

Commit

Permalink
Fix missing await's in MergeKeyStore
Browse files Browse the repository at this point in the history
  • Loading branch information
vgrichina committed Jul 11, 2020
1 parent 04f7c2d commit 716a1eb
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions lib/key_stores/merge_key_store.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions src/key_stores/merge_key_store.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export class MergeKeyStore extends KeyStore {
* @param keyPair The key pair to store in local storage
*/
async setKey(networkId: string, accountId: string, keyPair: KeyPair): Promise<void> {
this.keyStores[0].setKey(networkId, accountId, keyPair);
await this.keyStores[0].setKey(networkId, accountId, keyPair);
}

/**
Expand All @@ -48,7 +48,7 @@ export class MergeKeyStore extends KeyStore {
*/
async removeKey(networkId: string, accountId: string): Promise<void> {
for (const keyStore of this.keyStores) {
keyStore.removeKey(networkId, accountId);
await keyStore.removeKey(networkId, accountId);
}
}

Expand All @@ -57,7 +57,7 @@ export class MergeKeyStore extends KeyStore {
*/
async clear(): Promise<void> {
for (const keyStore of this.keyStores) {
keyStore.clear();
await keyStore.clear();
}
}

Expand Down

0 comments on commit 716a1eb

Please sign in to comment.