1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-10-22 11:22:43 +02:00
metamask-extension/app/scripts
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
..
account-import-strategies Bump keystone package versions to latest (#15878) 2022-09-22 10:04:24 -05:00
constants Deprecating the Rinkeby, Ropsten, and Kovan test networks (#15989) 2022-09-28 20:26:01 -07:00
controllers Make initializeProvider and lookupNetwork async (#16881) 2022-12-16 13:03:22 -03:30
flask Add changes to support blocking Snaps by source shasum (#15830) 2022-09-23 18:56:46 +02:00
lib Sanitize privacy sensitive data before sending to sentry. (#16780) 2022-12-16 11:56:23 -03:30
migrations Migrate to new controller packages (#16547) 2022-11-24 16:29:07 -03:30
platforms Use async/await for extension functions (#15722) 2022-11-21 08:51:11 -06:00
app-init.js Keep memstore contents after service worker restarts (#15913) 2022-11-22 20:56:26 +04:00
background.js Simplify MV3 initialization (#16559) 2022-11-24 10:02:05 -03:30
contentscript.js Handle extension unloaded and reloaded error: "Extension context invalidated" during dapp use for chromium browsers (#16306) 2022-12-12 19:24:12 +07:00
detect-multiple-instances.js Warn about multiple MetaMask instances running (#13836) 2022-04-27 20:14:10 +02:00
detect-multiple-instances.test.js Warn about multiple MetaMask instances running (#13836) 2022-04-27 20:14:10 +02:00
disable-console.js Update Eslint and deps (#15293) 2022-07-26 13:10:51 -05:00
first-time-state.js remove exclusions for mismatched object jsdoc type casing (#15351) 2022-07-27 08:28:05 -05:00
init-globals.js MV3: fix injection of applyLavamoat variable in service worker (#14920) 2022-06-18 12:40:30 +05:30
inpage.js MV3: contentscript.js - re-activate streams when Service Worker terminates and then resets (#15494) 2022-09-13 14:20:08 -07:00
lockdown-more.js remove exclusions for mismatched object jsdoc type casing (#15351) 2022-07-27 08:28:05 -05:00
lockdown-run.js
metamask-controller.actions.test.js Nock some endpoints to improve test perf (#16940) 2022-12-13 14:20:24 -06:00
metamask-controller.js [FLASK] Bump snaps iframe-execution-environment (#16932) 2022-12-14 11:48:50 +01:00
metamask-controller.test.js Nock some endpoints to improve test perf (#16940) 2022-12-13 14:20:24 -06:00
sentry-install.js refactor sentryHooks object (#16435) 2022-11-09 19:28:32 +00:00
ui.js scripts/ui: add tabs.query promise error handler (#16915) 2022-12-14 01:21:32 +07:00
use-snow.js Integrating snow into metamask (#15580) 2022-11-24 02:36:19 +02:00