1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-13 13:17:13 +01:00
Commit Graph

4 Commits

Author SHA1 Message Date
ryanml
523c04b47a Fix built-in networks switch-ethereum-chain, Including RPC url in switchEthereumChain requestData (#11268)
* Moving RPC Urls to network constants

* Including RPC url in switchEthereumChain requestData

* Setting project id to var

* Fix built-in networks switch-ethereum-chain

`switch-ethereum-chain` did not work correctly with built-in networks.
It was treating them as custom networks, rather than as built-in
networks. This affected how they were displayed in the network
dropdown, and resulted in slight differences to the network stack used
as well.

The problem was that `updateRpcTarget` was used, which was meant for
custom networks only. Now that `setProviderType` is used in the case of
a built-in network, the behaviour should match the network switcher
exactly.

Co-authored-by: Mark Stacey <markjstacey@gmail.com>
2021-06-09 19:57:10 -07:00
ryanml
10f9912fd5 Supporting existing default networks in switchEthereumChain (#11184) 2021-06-07 10:38:33 -02:30
Erik Marks
434249f171 Update switchEthereumChain unrecognized chain error (#11030) 2021-06-07 10:03:15 -02:30
Brad Decker
cfc0a868a4 rough in switchEthereumChain (#10905) 2021-06-07 10:02:42 -02:30