1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-10-22 19:26:13 +02:00
metamask-extension/app/scripts
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
..
account-import-strategies Fix prefer-spread issues (#9203) 2020-08-12 20:42:07 -02:30
controllers Fix fetching of swap quotes when initial network was testnet (#9726) 2020-10-27 13:22:21 -02:30
lib remove matomo and route to segment (#9646) 2020-10-26 14:05:57 -05:00
migrations Remove incorrect Migrator comment (#9659) 2020-10-20 11:34:55 -02:30
platforms Update ESLint shared config to v3 (#9274) 2020-08-19 13:57:05 -02:30
background.js Remove localhost provider type (#9551) 2020-10-12 12:05:40 -07:00
chromereload.js Fix console.error references 2016-08-29 17:32:39 -07:00
contentscript.js Update ESLint shared config to v3 (#9274) 2020-08-19 13:57:05 -02:30
first-time-state.js Remove localhost provider type (#9551) 2020-10-12 12:05:40 -07:00
inpage.js Update ESLint shared config to v3 (#9274) 2020-08-19 13:57:05 -02:30
metamask-controller.js remove matomo and route to segment (#9646) 2020-10-26 14:05:57 -05:00
phishing-detect.js Fix import/order issues (#9239) 2020-08-18 16:48:25 -02:30
ui.js Update ESLint shared config to v3 (#9274) 2020-08-19 13:57:05 -02:30