1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-11-22 09:57:02 +01:00
metamask-extension/test
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
..
data Use chainId values for the address book (#9565) 2020-10-12 16:35:55 -07:00
e2e Robustify waiting logic in e2e test (#9704) 2020-10-23 16:24:20 -07:00
lib Add prettier-plugin-sort-json (#9450) 2020-09-23 12:21:42 -02:30
stub Fix fetching of swap quotes when initial network was testnet (#9726) 2020-10-27 13:22:21 -02:30
unit Fix fetching of swap quotes when initial network was testnet (#9726) 2020-10-27 13:22:21 -02:30
unit-global Fix no-empty-function issues (#9216) 2020-08-14 09:17:02 -02:30
env.js Remove cross-env (#7950) 2020-01-30 14:11:26 -03:30
helper.js Update @metamask/eslint-config to v4.1.0 (#9663) 2020-10-21 14:01:03 -02:30
setup.js Remove obs-store babel register handling (#8413) 2020-04-27 07:54:42 -07:00