Resetting your wallet doesn't reset selected chain ID until app relaunch #19844
Labels
bug
feature/web3/wallet
Integrating Ethereum+ wallet support
OS/Desktop
priority/P3
The next thing for us to work on. It'll ride the trains.
QA Pass-Linux
QA Pass-macOS
QA Pass-Win64
QA/Yes
release-notes/include
Milestone
Description
When you reset your wallet in settings all of your wallet prefs are erased and you no longer have any keyring, however this does not erase all local state on keyed services used throughout wallet.
In this case
EthRpcController::GetChainId
returns a value not read from prefs until the controller is reinstantiated in a future session which means creating or restoring a wallet after resetting will retain this value instead of resetting back to the default selected chainSteps to Reproduce
Actual result:
Selected network will still be Ropsten
Expected result:
Selected network should be reset to Ethereum
Reproduces how often:
Always
Brave version (brave://version info)
1.34.47 Chromium: 96.0.4664.45 (Official Build) nightly (x86_64)
The text was updated successfully, but these errors were encountered: