mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-23 09:52:26 +01:00
parent
246287ff1c
commit
729a473210
@ -2,6 +2,8 @@
|
|||||||
|
|
||||||
## Current Master
|
## Current Master
|
||||||
|
|
||||||
|
- Fix bug where the "Reset account" feature would not clear the network cache.
|
||||||
|
|
||||||
## 4.4.0 Mon Mar 26 2018
|
## 4.4.0 Mon Mar 26 2018
|
||||||
|
|
||||||
- Internationalization: Taiwanese, Thai, Slovenian
|
- Internationalization: Taiwanese, Thai, Slovenian
|
||||||
|
@ -365,7 +365,7 @@ module.exports = class MetamaskController extends EventEmitter {
|
|||||||
placeSeedWords: this.placeSeedWords.bind(this),
|
placeSeedWords: this.placeSeedWords.bind(this),
|
||||||
verifySeedPhrase: nodeify(this.verifySeedPhrase, this),
|
verifySeedPhrase: nodeify(this.verifySeedPhrase, this),
|
||||||
clearSeedWordCache: this.clearSeedWordCache.bind(this),
|
clearSeedWordCache: this.clearSeedWordCache.bind(this),
|
||||||
resetAccount: this.resetAccount.bind(this),
|
resetAccount: nodeify(this.resetAccount, this),
|
||||||
importAccountWithStrategy: this.importAccountWithStrategy.bind(this),
|
importAccountWithStrategy: this.importAccountWithStrategy.bind(this),
|
||||||
|
|
||||||
// vault management
|
// vault management
|
||||||
@ -583,10 +583,15 @@ module.exports = class MetamaskController extends EventEmitter {
|
|||||||
/**
|
/**
|
||||||
* ?
|
* ?
|
||||||
*/
|
*/
|
||||||
resetAccount (cb) {
|
async resetAccount (cb) {
|
||||||
const selectedAddress = this.preferencesController.getSelectedAddress()
|
const selectedAddress = this.preferencesController.getSelectedAddress()
|
||||||
this.txController.wipeTransactions(selectedAddress)
|
this.txController.wipeTransactions(selectedAddress)
|
||||||
cb(null, selectedAddress)
|
|
||||||
|
const networkController = this.networkController
|
||||||
|
const oldType = networkController.getProvoderConfig().type
|
||||||
|
await networkController.setProviderType(oldType, true)
|
||||||
|
|
||||||
|
return selectedAddress
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user