Skip to content

Commit

Permalink
fixes(keychain): fix potential race condition in import wallet
Browse files Browse the repository at this point in the history
  • Loading branch information
baryon2 committed Jan 21, 2025
1 parent 8d8cf49 commit 1e2f3b7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@leapwallet/leap-keychain",
"version": "0.3.4",
"version": "0.3.5",
"description": "A javascript library for crypto key management",
"scripts": {
"test:coverage": "nyc mocha",
Expand Down
2 changes: 1 addition & 1 deletion src/keychain/keychain.ts
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ export class KeyChain {
},
};

KeyChain.updateKeyChain(wallet);
await KeyChain.updateKeyChain(wallet);
return wallet[walletId]!;
}

Expand Down

0 comments on commit 1e2f3b7

Please sign in to comment.