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 dbe77289d3
Make initializeProvider and lookupNetwork async (#16881)
* Make `initializeProvider` and `lookupNetwork` async

These two methods were "synchronous" previously, but initiated an
asynchronous operation. They have both been made `async` to bring them
more in-line with the mobile controller API, and to make them easier
to test.

This should include zero functional changes. These methods are still
being invoked without an `await`, to preserve the same behaviour they
had previously.

This relates to https://github.com/MetaMask/controllers/issues/971

* Move 'net_version' query to private function

* Fix error made when resolving conflicts

* Refactor to improve readability
2022-12-16 13:03:22 -03:30
..
ens Keep memstore contents after service worker restarts (#15913) 2022-11-22 20:56:26 +04:00
network Make initializeProvider and lookupNetwork async (#16881) 2022-12-16 13:03:22 -03:30
permissions [FLASK] snaps-monorepo@0.25.0 (#16673) 2022-11-30 13:19:33 +01:00
transactions Refactor how network state is passed to transaction controller (#16922) 2022-12-13 15:43:12 -03:30
alert.js remove exclusions for mismatched object jsdoc type casing (#15351) 2022-07-27 08:28:05 -05:00
app-state.js Removing flag for EIP1559 V2 support (#16446) 2022-12-09 00:07:06 +05:30
backup.js Fix 3box replacement for MV3 (#15851) 2022-09-29 07:34:20 +04:00
backup.test.js 3box Replacement (#15243) 2022-08-09 19:36:32 +01: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 fix cached detected token results (#16866) 2022-12-14 12:26:08 +05:30
detect-tokens.test.js Make certain network controller methods private (#16883) 2022-12-13 15:43:54 -03:30
incoming-transactions.js Network request in background should not start until onboarding is completed (#16773) 2022-12-02 23:29:03 +05:30
incoming-transactions.test.js Network request in background should not start until onboarding is completed (#16773) 2022-12-02 23:29:03 +05:30
metametrics.js remove rpc urls from metrics (#16710) 2022-11-30 09:52:25 -06:00
metametrics.test.js remove rpc urls from metrics (#16710) 2022-11-30 09:52:25 -06:00
onboarding.js remove exclusions for mismatched object jsdoc type casing (#15351) 2022-07-27 08:28:05 -05:00
preferences.js Removing flag for EIP1559 V2 support (#16446) 2022-12-09 00:07:06 +05:30
preferences.test.js Make certain network controller methods private (#16883) 2022-12-13 15:43:54 -03:30
swaps.js Keep memstore contents after service worker restarts (#15913) 2022-11-22 20:56:26 +04:00
swaps.test.js Deprecating the Rinkeby, Ropsten, and Kovan test networks (#15989) 2022-09-28 20:26:01 -07:00