aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorkumavis <aaron@kumavis.me>2017-02-01 16:17:48 +0800
committerkumavis <aaron@kumavis.me>2017-02-01 16:17:48 +0800
commitcd5d95260026333735f25a179c7018077e0da44e (patch)
tree044bb064a87a301ddc2e2ac92549f2c02fa2d975 /test
parent41c93ceb7eccd4c77f95e21b5965d306e4122e8e (diff)
downloadtangerine-wallet-browser-cd5d95260026333735f25a179c7018077e0da44e.tar
tangerine-wallet-browser-cd5d95260026333735f25a179c7018077e0da44e.tar.gz
tangerine-wallet-browser-cd5d95260026333735f25a179c7018077e0da44e.tar.bz2
tangerine-wallet-browser-cd5d95260026333735f25a179c7018077e0da44e.tar.lz
tangerine-wallet-browser-cd5d95260026333735f25a179c7018077e0da44e.tar.xz
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.js6
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 {