Skip to content

Commit d57dc39

Browse files
committed
fix: fix keyring_createAccount idempotency
1 parent a3a63d4 commit d57dc39

File tree

2 files changed

+2
-7
lines changed

2 files changed

+2
-7
lines changed

packages/snap/snap.manifest.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
{
2-
"version": "1.5.0",
2+
"version": "1.6.0",
33
"description": "Manage Bitcoin using MetaMask",
44
"proposedName": "Bitcoin",
55
"repository": {
66
"type": "git",
77
"url": "https://github.com/MetaMask/snap-bitcoin-wallet.git"
88
},
99
"source": {
10-
"shasum": "j9W3ulkpAGrL0lkkChX7wavGEY3qq6nCf4lQ0KmmF78=",
10+
"shasum": "vYuBEE/FcdT9Tx0+bRSQd82dwye4KmkSMiC46aMOqvU=",
1111
"location": {
1212
"npm": {
1313
"filePath": "dist/bundle.js",

packages/snap/src/use-cases/AccountUseCases.ts

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -166,11 +166,6 @@ export class AccountUseCases {
166166
const account = await this.#repository.getByDerivationPath(derivationPath);
167167
if (account && account.network === network) {
168168
this.#logger.debug('Account already exists: %s,', account.id);
169-
await this.#snapClient.emitAccountCreatedEvent(
170-
account,
171-
correlationId,
172-
accountName,
173-
);
174169
return account;
175170
}
176171

0 commit comments

Comments
 (0)