1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-10-23 03:36:18 +02:00
metamask-extension/test/unit/app
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
..
controllers Fix fetching of swap quotes when initial network was testnet (#9726) 2020-10-27 13:22:21 -02:30
account-import-strategies.spec.js Update ESLint shared config to v3 (#9274) 2020-08-19 13:57:05 -02:30
buy-eth-url.spec.js Update Wyre purchase URL (#9414) 2020-09-15 17:56:51 -02:30
cleanErrorStack.spec.js Update ESLint rules for test suite (#8023) 2020-02-11 13:21:13 -03:30
ComposableObservableStore.js Fix import/order issues (#9239) 2020-08-18 16:48:25 -02:30
fetch-with-timeout.test.js Enable arrow-parens ESLint rule 2020-02-15 17:04:21 -03:30
message-manager-test.js Fix no-empty-function issues (#9216) 2020-08-14 09:17:02 -02:30
nodeify-test.js Update ESLint shared config to v3 (#9274) 2020-08-19 13:57:05 -02:30
personal-message-manager-test.js Fix no-empty-function issues (#9216) 2020-08-14 09:17:02 -02:30
seed-phrase-verifier-test.js Replace clone dependency with cloneDeep from lodash (#7926) 2020-01-29 13:14:33 -04:00
typed-message-manager.spec.js Fix signTypedData_v4 chainId param validation (#9552) 2020-10-12 12:10:19 -07:00
util-test.js Merge pull request from GHSA-c2xw-px2x-pr65 2020-10-06 15:27:02 -02:30