1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-11-29 07:16:36 +01:00
metamask-extension/app/scripts/controllers
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
..
ens Fix/use etherjs specific imports (#15461) 2023-01-24 08:10:36 -06:00
network Set network status to "unknown" when ID is invalid (#19068) 2023-05-09 15:44:14 -02:30
permissions Fence snaps endowments and permissions for stable/flask (#18847) 2023-05-02 14:51:16 +02:00
transactions Bundle size reduction: Upgrading ethereumjs/tx and ethereumjs/common (#18302) 2023-05-05 10:55:41 -05:00
alert.js feature: convert level 32 files to typescript (#17390) 2023-01-27 18:28:03 +00:00
app-state.js UX Multichain: Added product tour component (#18571) 2023-04-21 20:58:18 +05:30
app-state.test.js Trigger unlock popup in appStateController using ApprovalController (#18386) 2023-04-14 05:50:17 +01:00
backup.js Migrate network configurations (previously frequentRpcListDetail) from PreferencesController to NetworkController (#17421) 2023-03-09 15:00:28 -06:00
backup.test.js Migrate network configurations (previously frequentRpcListDetail) from PreferencesController to NetworkController (#17421) 2023-03-09 15:00:28 -06:00
cached-balances.js remove exclusions for mismatched object jsdoc type casing (#15351) 2022-07-27 08:28:05 -05:00
cached-balances.test.js Deprecating the Rinkeby, Ropsten, and Kovan test networks (#15989) 2022-09-28 20:26:01 -07:00
decrypt-message.test.ts Consume Decrypt Message Manager from @metamask/message-manager (#18379) 2023-04-26 17:02:33 +02:00
decrypt-message.ts Consume Decrypt Message Manager from @metamask/message-manager (#18379) 2023-04-26 17:02:33 +02:00
detect-tokens.js Rename provider to providerConfig (#18907) 2023-05-02 13:23:20 -02:30
detect-tokens.test.js Rename provider to providerConfig (#18907) 2023-05-02 13:23:20 -02:30
encryption-public-key.test.ts Return state when calling EncryptionPublicKeyController.cancelEncryptionPublicKey (#18845) 2023-04-27 11:39:37 +01:00
encryption-public-key.ts Return state when calling EncryptionPublicKeyController.cancelEncryptionPublicKey (#18845) 2023-04-27 11:39:37 +01:00
incoming-transactions.js Additional incoming transactions support (#14219) 2023-02-14 12:35:42 -06:00
incoming-transactions.test.js Additional incoming transactions support (#14219) 2023-02-14 12:35:42 -06:00
metametrics.js feat: add yaml feature management (#18125) 2023-04-25 16:32:51 +02:00
metametrics.test.js Rename provider to providerConfig (#18907) 2023-05-02 13:23:20 -02:30
onboarding.js Use async/await instead of Promise.resolve (#16221) 2023-01-20 14:20:18 -06:00
preferences.js Remove openPopup from preferences controller (#18343) 2023-04-05 08:39:58 +01:00
preferences.test.js Make network controller internal fields private (#18607) 2023-04-17 12:45:33 -02:30
swaps.js Fix swaps controller: update provider after networkIdStore state update (#18670) 2023-04-19 18:15:26 -02:30
swaps.test.js Fix swaps controller: update provider after networkIdStore state update (#18670) 2023-04-19 18:15:26 -02:30