diff options
author | Mark Stacey <markjstacey@gmail.com> | 2019-07-26 21:35:21 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-07-26 21:35:21 +0800 |
commit | 1112277cd628378f8b0e659067456677ec9a45ac (patch) | |
tree | 77a4d1878ba8419a0e7400f9147bb67f44b4a177 /test/unit/app/controllers/preferences-controller-test.js | |
parent | 58965ed1643a816dca1fec608671017266709dda (diff) | |
download | tangerine-wallet-browser-1112277cd628378f8b0e659067456677ec9a45ac.tar.gz tangerine-wallet-browser-1112277cd628378f8b0e659067456677ec9a45ac.tar.zst tangerine-wallet-browser-1112277cd628378f8b0e659067456677ec9a45ac.zip |
Remove `seedWords` completely from metamask state (#6920)
`seedWords` used to be stored on the metamask state temporarily at
certain points. This hasn't been the case since #5994, but references
to this state remained. All of the logic remained for correctly updating
these `seedWords`, handling them during navigation, and scrubbing them
from the state.
However the state was never updated in practice. The `seedWords` are
still returned by `verifySeedPhrase`, and they're still stored in
component state in a few places. But they aren't ever set in the Redux
metadata state or the Preferences controller.
All references to this state have been removed, along with any logic
for interacting with this state. A few unused actions were removed as
well.
Diffstat (limited to 'test/unit/app/controllers/preferences-controller-test.js')
-rw-r--r-- | test/unit/app/controllers/preferences-controller-test.js | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/test/unit/app/controllers/preferences-controller-test.js b/test/unit/app/controllers/preferences-controller-test.js index 81b152f3d..7e047a2a8 100644 --- a/test/unit/app/controllers/preferences-controller-test.js +++ b/test/unit/app/controllers/preferences-controller-test.js @@ -496,21 +496,6 @@ describe('preferences controller', function () { }) }) - describe('setSeedWords', function () { - it('should default to null', function () { - const state = preferencesController.store.getState() - assert.equal(state.seedWords, null) - }) - - it('should set the seedWords property in state', function () { - assert.equal(preferencesController.store.getState().seedWords, null) - - preferencesController.setSeedWords('foo bar baz') - - assert.equal(preferencesController.store.getState().seedWords, 'foo bar baz') - }) - }) - describe('#updateRpc', function () { it('should update the rpcDetails properly', () => { preferencesController.store.updateState({frequentRpcListDetail: [{}, { rpcUrl: 'test' }, {}]}) |