Unable to remove custom networks
beemeeupnow opened this issue · 4 comments
beemeeupnow commented
Discord Discussion Link
No response
What browsers are you seeing the problem on?
Chrome
What were you trying to do?
Added custom network via ChainList, then tried to remove it from the Custom networks page in Settings. (in this particular case, Base with Llamanodes RPC)
What did not work?
The network is not successfully removed.
Version
v0.51.0
Relevant log output
{
"_e": {},
"name": "NotFoundError",
"message": "Failed to execute 'objectStore' on 'IDBTransaction': The specified object store was not found.\n NotFoundError: Failed to execute 'objectStore' on 'IDBTransaction': The specified object store was not found.",
"inner": {
"stack": "Error: Failed to execute 'objectStore' on 'IDBTransaction': The specified object store was not found.\n at chrome-extension://[REDACTED]/background.js:100478:29\n at Ie (chrome-extension://[REDACTED]/background.js:98897:11)\n at new Ce (chrome-extension://[REDACTED]/background.js:98867:58)\n at Object.count (chrome-extension://[REDACTED]/background.js:100477:22)\n at h.<computed> [as count] (chrome-extension://[REDACTED]/background.js:101347:31)\n at Object.count (chrome-extension://[REDACTED]/background.js:100919:31)\n at chrome-extension://[REDACTED]/background.js:99917:33\n at i (chrome-extension://[REDACTED]/background.js:99295:20)\n at chrome-extension://[REDACTED]/background.js:100209:25\n at Ie (chrome-extension://[REDACTED]/background.js:98897:11)"
}
}
EggsyOnCode commented
EggsyOnCode commented
Dexie.js is a wrapper lib for IndexedDB
EggsyOnCode commented
removeChainBalances: (
immerState,
{ payload: chainID }: { payload: string },
) => {
delete immerState.accountsData.evm[chainID]
},
there seems to be a problem with this reducer of the accountSlice in accounts.ts. The DB is not being updated ; that's why its not being reflected in the UI
Shadowfiend commented
This is probably failing in https://github.com/tahowallet/extension/blob/main/background/main.ts#L1974 -> so in one of these db calls: