Skip to content

Commit 92fac71

Browse files
committed
fix: fix keyring_createAccount idempotency
1 parent 0018103 commit 92fac71

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.4.3",
2+
"version": "1.4.4",
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": "On9X6VsyK9Nr8Zs0DmfA0SCKFsO8ayVV2oqNlGDpMFc=",
10+
"shasum": "vqHX/VnOD9FqtaTFApIVV0tUKtHiWW66P/HwTBOq4ak=",
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
@@ -165,11 +165,6 @@ export class AccountUseCases {
165165
const account = await this.#repository.getByDerivationPath(derivationPath);
166166
if (account && account.network === network) {
167167
this.#logger.debug('Account already exists: %s,', account.id);
168-
await this.#snapClient.emitAccountCreatedEvent(
169-
account,
170-
correlationId,
171-
accountName,
172-
);
173168
return account;
174169
}
175170

0 commit comments

Comments
 (0)