1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-11-27 04:46:10 +01:00
metamask-extension/test/unit/app/controllers
Mark Stacey 3bbc1d1fa4
Fix fetching of swap quotes when initial network was testnet (#9726)
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.
2020-10-27 13:22:21 -02:30
..
network Merge pull request from GHSA-c2xw-px2x-pr65 2020-10-06 15:27:02 -02:30
permissions Update ESLint shared config to v3 (#9274) 2020-08-19 13:57:05 -02:30
transactions Refactor background Segment usage (#9509) 2020-10-08 09:41:23 -07:00
cached-balances-test.js Fix no-empty-function issues (#9216) 2020-08-14 09:17:02 -02:30
detect-tokens-test.js Use Infura v3 API (#9368) 2020-09-10 13:46:00 -02:30
ens-controller-test.js Fix import/no-extraneous-dependencies issues (#9232) 2020-08-14 17:34:56 -02:30
incoming-transactions-test.js Update ESLint shared config to v3 (#9274) 2020-08-19 13:57:05 -02:30
metamask-controller-test.js Remove localhost provider type (#9551) 2020-10-12 12:05:40 -07:00
preferences-controller-test.js Remove localhost provider type (#9551) 2020-10-12 12:05:40 -07:00
swaps-test.js Fix fetching of swap quotes when initial network was testnet (#9726) 2020-10-27 13:22:21 -02:30
token-rates-controller.js Fix import/order issues (#9239) 2020-08-18 16:48:25 -02:30