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
Mark Stacey 05715dd981
Support hex and number net_version responses (#19156)
Hex and number responses from the `net_version` request are now
accepted. While most chains return decimal strings for this request,
some chains were returning hex responses instead and failing our
validation for this request (which was added in v10.30.0). This
resolves that problem.

Support for number responses was added because it likely worked in
older versions as well, so support is maintained to avoid similar
problems.

Fixes #19151
2023-05-15 18:56:22 -02:30
..
provider-api-tests Re-enable tests for subscription-based RPC methods (#18994) 2023-05-10 09:34:10 -02:30
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 Refactor network client constructor (#17652) 2023-03-22 17:20:59 -05:00
index.ts Convert NetworkController to TS (#18358) 2023-04-11 10:07:24 -06:00
network-controller.test.ts Support hex and number net_version responses (#19156) 2023-05-15 18:56:22 -02:30
network-controller.ts Support hex and number net_version responses (#19156) 2023-05-15 18:56:22 -02:30