mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-01 21:57:06 +01:00
b87c1b8526
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 |
||
---|---|---|
.. | ||
add-ethereum-chain.js | ||
eth-accounts.js | ||
get-provider-state.js | ||
index.js | ||
log-web3-shim-usage.js | ||
request-accounts.js | ||
send-metadata.js | ||
switch-ethereum-chain.js | ||
watch-asset.js |