core icon indicating copy to clipboard operation
core copied to clipboard

KeyringController state issues

Open brunobar79 opened this issue 6 years ago • 0 comments

There's something funky going on with the state of the KeyringController. Specifically with the property keyrings.

Once the property is updated via fullUpdate which internally calls update, the new value is not accessible via state (still has the default value) but it's fine if you access it via context.

How to reproduce from the app: 1 - Log in 2 - To verify that the value has been set, log Engine.context.KeyringController.state.keyrings => [{ type: 'HD Keyring', accounts: ['0x...']}] 3 - Now try to access it through state, logEngine.state.KeyringController.keyrings => []

brunobar79 avatar Dec 03 '18 17:12 brunobar79