1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-11-27 12:56:01 +01:00
metamask-extension/ui/app
Thomas Huang 79d477009e
Use verifyPassword instead of submitPassword when exporting priv key (#9288)
* Use verifyPassword instead of submitPassword when exporting priv key

Fixes #9287 which was when submitPassword is called will fully clear the keyring state

https://github.com/MetaMask/KeyringController/blob/master/index.js#L155
ad823d0ac1/index.js (L562)
ad823d0ac1/index.js (L726)

Also, pass hideWarning action prop so it will clear the appState.warning if a correct password is never provided on componentWillUnmount

* Hide Warning on componentWillUnmount

* Update exportAccount tests to verifyPassword

* Update ui/app/store/actions.js
Co-authored-by: Mark Stacey <markjstacey@gmail.com>
2020-08-26 16:19:41 -07:00
..
components Use verifyPassword instead of submitPassword when exporting priv key (#9288) 2020-08-26 16:19:41 -07:00
contexts Update ESLint shared config to v3 (#9274) 2020-08-19 13:57:05 -02:30
css remove unnecessary files and scss (#9253) 2020-08-19 16:02:42 -05:00
ducks Replace abi-decoder with ethers (#9290) 2020-08-21 19:29:19 -07:00
helpers Replace abi-decoder with ethers (#9290) 2020-08-21 19:29:19 -07:00
hooks Replace abi-decoder with ethers (#9290) 2020-08-21 19:29:19 -07:00
pages fix ens error text on mainnet (#9314) 2020-08-26 19:56:14 -03:00
selectors Replace abi-decoder with ethers (#9290) 2020-08-21 19:29:19 -07:00
store Use verifyPassword instead of submitPassword when exporting priv key (#9288) 2020-08-26 16:19:41 -07:00