1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-23 09:52:26 +01:00
metamask-extension/app/scripts
Mark Stacey 6d64951938
Move infuraProjectId to network controller constructor (#16884)
The network controller `setInfuraProjectId` method has been deleted.
The Infura project ID is only ever set upon construction, so it is now
passed in as a constructor parameter instead.

Rather than adding this as a second parameter, the network controller
now uses an "options bag" for constructor parameters. The initial state
was the first parameter, but it's now passed in as the `state` option
instead.

These changes make the API more similar to the mobile network
controller API.

This should have zero functional changes.

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

Co-authored-by: legobeat <109787230+legobeat@users.noreply.github.com>
2022-12-13 12:09:21 -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 Move infuraProjectId to network controller constructor (#16884) 2022-12-13 12:09:21 -03:30
flask Add changes to support blocking Snaps by source shasum (#15830) 2022-09-23 18:56:46 +02:00
lib Privacy - Update metametrics copy during onboarding (#16825) 2022-12-07 12:56:57 -06:00
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
detect-multiple-instances.test.js
disable-console.js
first-time-state.js
init-globals.js
inpage.js
lockdown-more.js
lockdown-run.js
metamask-controller.actions.test.js Migrate to new controller packages (#16547) 2022-11-24 16:29:07 -03:30
metamask-controller.js Move infuraProjectId to network controller constructor (#16884) 2022-12-13 12:09:21 -03:30
metamask-controller.test.js Simplify MV3 initialization (#16559) 2022-11-24 10:02:05 -03:30
sentry-install.js refactor sentryHooks object (#16435) 2022-11-09 19:28:32 +00:00
ui.js Fix #15050 - MV3: Keep the user logged in when service worker restarts (#15558) 2022-11-23 18:49:24 -06:00
use-snow.js Integrating snow into metamask (#15580) 2022-11-24 02:36:19 +02:00