diff options
author | kumavis <aaron@kumavis.me> | 2017-02-01 16:17:48 +0800 |
---|---|---|
committer | kumavis <aaron@kumavis.me> | 2017-02-01 16:17:48 +0800 |
commit | cd5d95260026333735f25a179c7018077e0da44e (patch) | |
tree | 044bb064a87a301ddc2e2ac92549f2c02fa2d975 /test | |
parent | 41c93ceb7eccd4c77f95e21b5965d306e4122e8e (diff) | |
download | tangerine-wallet-browser-cd5d95260026333735f25a179c7018077e0da44e.tar.gz tangerine-wallet-browser-cd5d95260026333735f25a179c7018077e0da44e.tar.zst tangerine-wallet-browser-cd5d95260026333735f25a179c7018077e0da44e.zip |
keyring - move identities into memStore
Diffstat (limited to 'test')
-rw-r--r-- | test/unit/keyring-controller-test.js | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/test/unit/keyring-controller-test.js b/test/unit/keyring-controller-test.js index 347aa2bdf..aae4cdfd6 100644 --- a/test/unit/keyring-controller-test.js +++ b/test/unit/keyring-controller-test.js @@ -104,7 +104,7 @@ describe('KeyringController', function() { it('should add the address to the identities hash', function() { const fakeAddress = '0x12345678' keyringController.createNickname(fakeAddress) - const identities = keyringController.identities + const identities = keyringController.memStore.getState().identities const identity = identities[fakeAddress] assert.equal(identity.address, fakeAddress) }) @@ -114,7 +114,9 @@ describe('KeyringController', function() { it ('sets the nickname', function(done) { const account = addresses[0] var nick = 'Test nickname' - keyringController.identities[ethUtil.addHexPrefix(account)] = {} + const identities = keyringController.memStore.getState().identities + identities[ethUtil.addHexPrefix(account)] = {} + keyringController.memStore.updateState({ identities }) keyringController.saveAccountLabel(account, nick) .then((label) => { try { |