mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-11-27 04:46:10 +01:00
3bbc1d1fa4
If the initial network when the extension is started is something other than Mainnet, the swaps controller will never successfully retrieve swap quotes. This is because the `ethers` provider used by the swaps controller doesn't allow network changes by default - it assumes that the network remains the same as when the provider was initialized. This was fixed by hard-coding Mainnet as the initial chain ID for this `ethers` provider used by the swaps controller. Some adjustments needed to be made to the `provider` stub to allow setting `1` as the network ID and chain ID in unit tests. |
||
---|---|---|
.. | ||
network | ||
permissions | ||
transactions | ||
cached-balances-test.js | ||
detect-tokens-test.js | ||
ens-controller-test.js | ||
incoming-transactions-test.js | ||
metamask-controller-test.js | ||
preferences-controller-test.js | ||
swaps-test.js | ||
token-rates-controller.js |