1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-11-25 20:02:58 +01:00
metamask-extension/app
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
..
_locales Add reveal to export private key (#18170) 2023-05-06 17:04:20 -04:00
build-types [MMI] update eth overview component (#18625) 2023-04-21 12:16:09 +01:00
fonts
images Adding new icons (#18870) 2023-04-28 12:29:58 -07:00
manifest
scripts Set network status to "unknown" when ID is invalid (#19068) 2023-05-09 15:44:14 -02:30
vendor/trezor
background.html
home.html
loading.html
notification.html
popup.html
trezor-usb-permissions.html