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
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
..
ens Fix node/no-deprecated-api issues (#9670) 2020-10-22 11:33:45 -02:30
network Use networkVersion as the network state for all networks (#9555) 2020-10-12 17:06:25 -07:00
permissions Update @metamask/eslint-config to v4.1.0 (#9663) 2020-10-21 14:01:03 -02:30
transactions Gas metrics tweaks for swaps failed and completed events (#9676) 2020-10-22 17:34:34 -02:30
alert.js Merge pull request from GHSA-c2xw-px2x-pr65 2020-10-06 15:27:02 -02:30
app-state.js Add MetaMask Swaps (#9482) 2020-10-06 15:58:38 -02:30
cached-balances.js Update ESLint shared config to v3 (#9274) 2020-08-19 13:57:05 -02:30
detect-tokens.js Fix accessor-pairs issues (#9680) 2020-10-22 14:36:44 -02:30
incoming-transactions.js Update ESLint shared config to v3 (#9274) 2020-08-19 13:57:05 -02:30
onboarding.js Update ESLint shared config to v3 (#9274) 2020-08-19 13:57:05 -02:30
preferences.js Remove localhost provider type (#9551) 2020-10-12 12:05:40 -07:00
swaps.js Fix fetching of swap quotes when initial network was testnet (#9726) 2020-10-27 13:22:21 -02:30
threebox.js Fix 3Box sync and e2e tests (#9422) 2020-09-29 14:17:55 -02:30
token-rates.js Fix accessor-pairs issues (#9680) 2020-10-22 14:36:44 -02:30