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 b87c1b8526
Make setProviderType async (#18604)
The network controller method `setProviderType` is now async, and the
async operation `_setProviderConfig` called at the end of the method is
now awaited.

Because the only async operation was the last step, this should have no
impact upon the flow of execution. The only functional change is that
now any callers have the option of waiting until the network switch
operation has completed.

One such change was made, in the `switch-ethereum-chain` middleware. As
a result, an error thrown while the network is switching will now
be thrown in this middleware and returned to the dapp as an internal
error.

Relates to https://github.com/MetaMask/metamask-extension/issues/18587
2023-04-17 15:45:01 -02:30
..
ens Fix/use etherjs specific imports (#15461) 2023-01-24 08:10:36 -06:00
network Make setProviderType async (#18604) 2023-04-17 15:45:01 -02:30
permissions [FLASK] Remove unused snaps code (#18565) 2023-04-17 12:55:08 +02:00
transactions Trigger transaction popup using ApprovalController (#18400) 2023-04-11 14:18:43 +01:00
alert.js feature: convert level 32 files to typescript (#17390) 2023-01-27 18:28:03 +00:00
app-state.js Updating Terms of Use, Adding popover and onboarding flow check (#18221) 2023-04-14 12:51:13 -04:00
app-state.test.js Trigger unlock popup in appStateController using ApprovalController (#18386) 2023-04-14 05:50:17 +01:00
backup.js Migrate network configurations (previously frequentRpcListDetail) from PreferencesController to NetworkController (#17421) 2023-03-09 15:00:28 -06:00
backup.test.js Migrate network configurations (previously frequentRpcListDetail) from PreferencesController to NetworkController (#17421) 2023-03-09 15:00:28 -06:00
cached-balances.js remove exclusions for mismatched object jsdoc type casing (#15351) 2022-07-27 08:28:05 -05:00
cached-balances.test.js Deprecating the Rinkeby, Ropsten, and Kovan test networks (#15989) 2022-09-28 20:26:01 -07:00
detect-tokens.js Convert shared/constants/metametrics to TS (#18353) 2023-04-03 09:31:04 -06:00
detect-tokens.test.js Make setProviderType async (#18604) 2023-04-17 15:45:01 -02:30
encryption-public-key.test.ts Refactor eth_getEncryptionPublicKey handling (#18319) 2023-04-13 09:24:59 +01:00
encryption-public-key.ts Refactor eth_getEncryptionPublicKey handling (#18319) 2023-04-13 09:24:59 +01:00
incoming-transactions.js Additional incoming transactions support (#14219) 2023-02-14 12:35:42 -06:00
incoming-transactions.test.js Additional incoming transactions support (#14219) 2023-02-14 12:35:42 -06:00
metametrics.js Convert shared/constants/metametrics to TS (#18353) 2023-04-03 09:31:04 -06:00
metametrics.test.js Convert shared/constants/metametrics to TS (#18353) 2023-04-03 09:31:04 -06:00
onboarding.js Use async/await instead of Promise.resolve (#16221) 2023-01-20 14:20:18 -06:00
preferences.js Remove openPopup from preferences controller (#18343) 2023-04-05 08:39:58 +01:00
preferences.test.js Make network controller internal fields private (#18607) 2023-04-17 12:45:33 -02:30
sign.test.ts Disable rate limiting for signature approval requests (#18594) 2023-04-14 18:33:53 +01:00
sign.ts Disable rate limiting for signature approval requests (#18594) 2023-04-14 18:33:53 +01:00
swaps.js NetworkController: Split network into networkId and networkStatus (#17556) 2023-03-30 16:49:12 -06:00
swaps.test.js NetworkController: Split network into networkId and networkStatus (#17556) 2023-03-30 16:49:12 -06:00