update to temp dependencies

feature/default_network_editable
brunobar79 6 years ago
parent 5a2a34591f
commit 89cc48789a
  1. 7
      app/scripts/metamask-controller.js
  2. 23
      package-lock.json
  3. 4
      package.json

@ -708,13 +708,18 @@ module.exports = class MetamaskController extends EventEmitter {
} }
/** /**
* Removes a "Loose" account from state. * Removes an account from state / storage.
* *
* @param {string[]} address A hex address * @param {string[]} address A hex address
* *
*/ */
async removeAccount (address) { async removeAccount (address) {
// Remove account from the preferences controller
this.preferencesController.removeAddress(address) this.preferencesController.removeAddress(address)
// Remove account from the account tracker controller
this.accountTracker.removeAccount(address)
// Remove account from the keyring
await this.keyringController.removeAccount(address)
return address return address
} }

23
package-lock.json generated

@ -8458,9 +8458,8 @@
} }
}, },
"eth-keyring-controller": { "eth-keyring-controller": {
"version": "3.2.0", "version": "github:brunobar79/KeyringController#51f9ea9f015c8e6f06f4e15d17e24d4f724f505e",
"resolved": "https://registry.npmjs.org/eth-keyring-controller/-/eth-keyring-controller-3.2.0.tgz", "from": "github:brunobar79/KeyringController#remove-account",
"integrity": "sha512-GU1blKGftP6VDfI/5+9QZxPVkgm6VB7/UWTywd49rA/lNfm64mwTFjkBLG26S6UjdEJZiAU1kI1CdNWdAzZg5w==",
"dev": true, "dev": true,
"requires": { "requires": {
"bip39": "^2.4.0", "bip39": "^2.4.0",
@ -8468,7 +8467,7 @@
"browser-passworder": "^2.0.3", "browser-passworder": "^2.0.3",
"eth-hd-keyring": "^1.2.2", "eth-hd-keyring": "^1.2.2",
"eth-sig-util": "^1.4.0", "eth-sig-util": "^1.4.0",
"eth-simple-keyring": "^1.2.2", "eth-simple-keyring": "github:brunobar79/eth-simple-keyring#c4ea3459268bcbee8cbe6940699b4c3bda2e2771",
"ethereumjs-util": "^5.1.2", "ethereumjs-util": "^5.1.2",
"loglevel": "^1.5.0", "loglevel": "^1.5.0",
"obs-store": "^2.4.1", "obs-store": "^2.4.1",
@ -8581,9 +8580,8 @@
} }
}, },
"eth-simple-keyring": { "eth-simple-keyring": {
"version": "1.2.2", "version": "github:brunobar79/eth-simple-keyring#c4ea3459268bcbee8cbe6940699b4c3bda2e2771",
"resolved": "https://registry.npmjs.org/eth-simple-keyring/-/eth-simple-keyring-1.2.2.tgz", "from": "github:brunobar79/eth-simple-keyring#remove-account",
"integrity": "sha512-uQVBYshHUOaXVoat1BpLA/QNMCr4hgdFBgwIB7rRmQ+m3vQQAseUsOM+biPDYzq6end+6LjcccElLpQaIZe6dg==",
"dev": true, "dev": true,
"requires": { "requires": {
"eth-sig-util": "^1.4.2", "eth-sig-util": "^1.4.2",
@ -8780,9 +8778,8 @@
} }
}, },
"eth-trezor-keyring": { "eth-trezor-keyring": {
"version": "0.0.1", "version": "github:MetaMask/eth-trezor-keyring#7e5874ae1069a7f289e4996b79a3dac2ea40538d",
"resolved": "https://registry.npmjs.org/eth-trezor-keyring/-/eth-trezor-keyring-0.0.1.tgz", "from": "github:MetaMask/eth-trezor-keyring#remove-and-forget",
"integrity": "sha512-guXGx4tiBukuRMkNSRa3YS003X6gDWnsVL6PZ7X/dPY7bbt1nRQYVonABh/gSZSJYnKws1CrvW5/ORAHd7i8Dg==",
"requires": { "requires": {
"eth-sig-util": "^1.4.2", "eth-sig-util": "^1.4.2",
"ethereumjs-tx": "^1.3.4", "ethereumjs-tx": "^1.3.4",
@ -17710,9 +17707,9 @@
} }
}, },
"level-sublevel": { "level-sublevel": {
"version": "6.6.2", "version": "6.6.5",
"resolved": "https://registry.npmjs.org/level-sublevel/-/level-sublevel-6.6.2.tgz", "resolved": "https://registry.npmjs.org/level-sublevel/-/level-sublevel-6.6.5.tgz",
"integrity": "sha512-+hptqmFYPKFju9QG4F6scvx3ZXkhrSmmhYui+hPzRn/jiC3DJ6VNZRKsIhGMpeajVBWfRV7XiysUThrJ/7PgXQ==", "integrity": "sha512-SBSR60x+dghhwGUxPKS+BvV1xNqnwsEUBKmnFepPaHJ6VkBXyPK9SImGc3K2BkwBfpxlt7GKkBNlCnrdufsejA==",
"dev": true, "dev": true,
"requires": { "requires": {
"bytewise": "~1.1.0", "bytewise": "~1.1.0",

@ -101,7 +101,7 @@
"eth-query": "^2.1.2", "eth-query": "^2.1.2",
"eth-sig-util": "^1.4.2", "eth-sig-util": "^1.4.2",
"eth-token-tracker": "^1.1.4", "eth-token-tracker": "^1.1.4",
"eth-trezor-keyring": "0.0.1", "eth-trezor-keyring": "github:MetaMask/eth-trezor-keyring#remove-and-forget",
"ethereumjs-abi": "^0.6.4", "ethereumjs-abi": "^0.6.4",
"ethereumjs-tx": "^1.3.0", "ethereumjs-tx": "^1.3.0",
"ethereumjs-util": "github:ethereumjs/ethereumjs-util#ac5d0908536b447083ea422b435da27f26615de9", "ethereumjs-util": "github:ethereumjs/ethereumjs-util#ac5d0908536b447083ea422b435da27f26615de9",
@ -232,7 +232,7 @@
"eslint-plugin-mocha": "^5.0.0", "eslint-plugin-mocha": "^5.0.0",
"eslint-plugin-react": "^7.4.0", "eslint-plugin-react": "^7.4.0",
"eth-json-rpc-middleware": "^1.6.0", "eth-json-rpc-middleware": "^1.6.0",
"eth-keyring-controller": "^3.2.0", "eth-keyring-controller": "github:brunobar79/KeyringController#remove-account",
"file-loader": "^1.1.11", "file-loader": "^1.1.11",
"fs-promise": "^2.0.3", "fs-promise": "^2.0.3",
"ganache-cli": "^6.1.0", "ganache-cli": "^6.1.0",

Loading…
Cancel
Save