1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-23 09:52:26 +01:00
metamask-extension/app/scripts/controllers/network
Elliot Winkler 63c402155d
Sync default value of networkDetails w/ core (#19407)
In the core version of NetworkController, the `networkDetails` property
is initialized to `{ EIPS: {} }`. It is also reset to this
representation when `refreshNetwork` is called.

In this version of NetworkController, however, the default
representation of `networkDetails` is `{ EIPS: { 1559: undefined } }`.
From a consumer's perspective this doesn't make a difference — it's
practically the same. It does make a slight difference in tests,
however.

With that in mind, this commit changes the default representation to `{
EIPS: {} }`. This makes it easier to visually compare differences in the
NetworkController unit tests between core and this repo.
2023-06-02 14:35:08 -06:00
..
provider-api-tests test: sanitize url hostname check (#19053) 2023-05-18 00:09:20 +09:00
test Use fake provider for NetworkController unit tests (#18628) 2023-04-20 15:21:41 -02:30
create-network-client.test.ts Convert NetworkController net client tests to TS (#18490) 2023-04-14 10:21:29 -06:00
create-network-client.ts
index.ts Convert NetworkController to TS (#18358) 2023-04-11 10:07:24 -06:00
network-controller.test.ts Sync default value of networkDetails w/ core (#19407) 2023-06-02 14:35:08 -06:00
network-controller.ts Sync default value of networkDetails w/ core (#19407) 2023-06-02 14:35:08 -06:00