1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-10-22 19:26:13 +02:00
metamask-extension/test/unit
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
..
actions Export each action constant directly (#8536) 2020-05-06 16:26:09 -02:30
app Remove unused diagnostics property (#9296) 2020-08-25 13:54:15 -07:00
lib Fix import/order issues (#9239) 2020-08-18 16:48:25 -02:30
migrations Update ESLint shared config to v3 (#9274) 2020-08-19 13:57:05 -02:30
responsive/components Remove mountWithStore enzyme component wrapper (#9309) 2020-08-26 15:55:24 -07:00
ui Use verifyPassword instead of submitPassword when exporting priv key (#9288) 2020-08-26 16:19:41 -07:00
balance-formatter-test.js Migrate codebase to use ESM (#7730) 2020-01-09 00:04:58 -03:30
localhostState.js Migrate codebase to use ESM (#7730) 2020-01-09 00:04:58 -03:30