Skip to content

Commit

Permalink
Migrate keyring controller patch to new package
Browse files Browse the repository at this point in the history
  • Loading branch information
Gudahtt committed Nov 23, 2022
1 parent ee2c4cb commit 39f804e
Showing 1 changed file with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
diff --git a/node_modules/@metamask/controllers/dist/keyring/KeyringController.js b/node_modules/@metamask/controllers/dist/keyring/KeyringController.js
index 906985d..6984571 100644
--- a/node_modules/@metamask/controllers/dist/keyring/KeyringController.js
+++ b/node_modules/@metamask/controllers/dist/keyring/KeyringController.js
@@ -125,6 +125,7 @@ class KeyringController extends BaseController_1.BaseController {
diff --git a/node_modules/@metamask/keyring-controller/dist/KeyringController.js b/node_modules/@metamask/keyring-controller/dist/KeyringController.js
index a5e5af1..5ebd437 100644
--- a/node_modules/@metamask/keyring-controller/dist/KeyringController.js
+++ b/node_modules/@metamask/keyring-controller/dist/KeyringController.js
@@ -125,6 +125,7 @@ class KeyringController extends base_controller_1.BaseController {
}
/**
* Adds a new account to the default (first) HD seed phrase keyring.
+ * Patched to not auto switch accounts.
*
* @returns Promise resolving to current state when the account is added.
*/
@@ -140,12 +141,13 @@ class KeyringController extends BaseController_1.BaseController {
@@ -140,12 +141,13 @@ class KeyringController extends base_controller_1.BaseController {
const newAccounts = yield __classPrivateFieldGet(this, _KeyringController_keyring, "f").getAccounts();
yield this.verifySeedPhrase();
this.updateIdentities(newAccounts);
Expand All @@ -26,7 +26,7 @@ index 906985d..6984571 100644
});
}
/**
@@ -313,8 +315,8 @@ class KeyringController extends BaseController_1.BaseController {
@@ -313,8 +315,8 @@ class KeyringController extends base_controller_1.BaseController {
const accounts = yield newKeyring.getAccounts();
const allAccounts = yield __classPrivateFieldGet(this, _KeyringController_keyring, "f").getAccounts();
this.updateIdentities(allAccounts);
Expand Down

0 comments on commit 39f804e

Please sign in to comment.