1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-23 09:52:26 +01:00
metamask-extension/test/unit
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
..
actions Update @metamask/eslint-config to v4.1.0 (#9663) 2020-10-21 14:01:03 -02:30
app Fix fetching of swap quotes when initial network was testnet (#9726) 2020-10-27 13:22:21 -02:30
lib Fix import/order issues (#9239) 2020-08-18 16:48:25 -02:30
migrations Migrate 'localhost' tokens (#9570) 2020-10-13 07:07:00 -07:00
responsive/components Remove mountWithStore enzyme component wrapper (#9309) 2020-08-26 15:55:24 -07:00
ui Use chainId values for the address book (#9565) 2020-10-12 16:35:55 -07:00
balance-formatter-test.js Migrate codebase to use ESM (#7730) 2020-01-09 00:04:58 -03:30
localhostState.js Remove localhost provider type (#9551) 2020-10-12 12:05:40 -07:00