1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-23 01:39:44 +01:00
metamask-extension/shared/constants
ryanml a75092762f
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 15:18:38 -07:00
..
alerts.js @metamask/eslint config@5.0.0 (#10358) 2021-02-04 10:15:23 -08:00
app.js rough in switchEthereumChain (#10905) 2021-05-10 14:14:21 -05:00
gas.js fix issue with importing ui module space inside shared (#11254) 2021-06-08 15:15:28 -05:00
metametrics.js @metamask/eslint config@5.0.0 (#10358) 2021-02-04 10:15:23 -08:00
network.js Fix built-in networks switch-ethereum-chain, Including RPC url in switchEthereumChain requestData (#11268) 2021-06-09 15:18:38 -07:00
permissions.js @metamask/eslint config@5.0.0 (#10358) 2021-02-04 10:15:23 -08:00
swaps.js Show custom tokens in Swaps, add a custom token in Swaps (#11200) 2021-06-03 13:38:37 -02:30
time.js Adding periodic reminder modal for backing up recovery phrase (#11021) 2021-06-04 23:33:58 -07:00
tokens.js @metamask/eslint config@5.0.0 (#10358) 2021-02-04 10:15:23 -08:00
transaction.js Group signature transactions (#11016) 2021-05-11 12:57:06 -05:00