1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-11-25 20:02:58 +01:00
metamask-extension/app/scripts
Mark Stacey 9847179f54
Set network status to "unknown" when ID is invalid (#19068)
We now set the network status to "unknown" rather than "unavailable"
when the network ID is invalid. This better reflects what we know when
this happens, and it makes the network controller better aligned with
the core network controller.

This was accomplished by using a regular error for the network ID
assertion rather than using `assert` directly. `assert` would throw an
error with a `code` property, which resutled in us treating it like an
RPC error.

This isn't tested, but it was found in the course of porting unit tests
from core to extension. It will be covered by these tests, which will
be added in the next PR.

This change should have no functional impact because we treat these two
network statuses as equivalent. The distinction between unknown and
unavailable is useful only for debugging.
2023-05-09 15:44:14 -02:30
..
account-import-strategies
constants
controllers Set network status to "unknown" when ID is invalid (#19068) 2023-05-09 15:44:14 -02:30
lib Use separate versions for Flask and Stable snaps (#18875) 2023-05-03 15:16:43 +02:00
migrations Rename provider to providerConfig (#18907) 2023-05-02 13:23:20 -02:30
platforms feat: add yaml feature management (#18125) 2023-04-25 16:32:51 +02:00
app-init.js
background.js Use core signature controller (#18654) 2023-05-05 13:05:52 +01:00
contentscript.js
detect-multiple-instances.js
detect-multiple-instances.test.js
disable-console.js
first-time-state.js
init-globals.js
inpage.js
lockdown-more.js
lockdown-run.js update ses@0.18.4 (#17521) 2023-04-27 21:31:52 +09:00
metamask-controller.actions.test.js
metamask-controller.js Fix fail to reject multiple approval requests (#19050) 2023-05-08 11:09:46 +01:00
metamask-controller.test.js Rename provider to providerConfig (#18907) 2023-05-02 13:23:20 -02:30
sentry-install.js
ui.js feat: add yaml feature management (#18125) 2023-04-25 16:32:51 +02:00
use-snow.js