1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-01 21:57:06 +01:00
metamask-extension/app/scripts/lib/rpc-method-middleware/handlers
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
..
add-ethereum-chain.js Convert shared/constants/metametrics to TS (#18353) 2023-04-03 09:31:04 -06:00
eth-accounts.js Add JSDoc ESLint rules (#12112) 2022-01-07 12:27:33 -03:30
get-provider-state.js remove exclusions for mismatched object jsdoc type casing (#15351) 2022-07-27 08:28:05 -05:00
index.js Add extension desktop UI (#17748) 2023-02-23 16:39:48 +00:00
log-web3-shim-usage.js Convert shared/constants/metametrics to TS (#18353) 2023-04-03 09:31:04 -06:00
request-accounts.js Fixes an issue where metamask popup is not loading on eth_accounts (#13840) 2022-03-07 19:09:03 +04:00
send-metadata.js Choose accounts refactor (#13039) 2021-12-14 18:54:46 -05:00
switch-ethereum-chain.js Make setProviderType async (#18604) 2023-04-17 15:45:01 -02:30
watch-asset.js remove exclusions for mismatched object jsdoc type casing (#15351) 2022-07-27 08:28:05 -05:00