Update MetaMaskController vault restoration test for new KC api

feature/default_network_editable
Whymarrh Whitby 7 years ago
parent 805c6158a4
commit e546f4b904
  1. 2
      test/unit/metamask-controller-test.js

@ -106,7 +106,7 @@ describe('MetaMaskController', function () {
[TEST_ADDRESS]: { address: TEST_ADDRESS, name: DEFAULT_LABEL },
})
await metamaskController.keyringController.saveAccountLabel(TEST_ADDRESS, 'Account Foo')
await metamaskController.preferencesController.setAccountLabel(TEST_ADDRESS, 'Account Foo')
assert.deepEqual(metamaskController.getState().identities, {
[TEST_ADDRESS]: { address: TEST_ADDRESS, name: 'Account Foo' },
})

Loading…
Cancel
Save