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 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
..
ens
network Move infuraProjectId to network controller constructor (#16884) 2022-12-13 12:09:21 -03:30
permissions
transactions Removing flag for EIP1559 V2 support (#16446) 2022-12-09 00:07:06 +05:30
alert.js
app-state.js Removing flag for EIP1559 V2 support (#16446) 2022-12-09 00:07:06 +05:30
backup.js
backup.test.js
cached-balances.js
cached-balances.test.js
detect-tokens.js
detect-tokens.test.js Move infuraProjectId to network controller constructor (#16884) 2022-12-13 12:09:21 -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
preferences.js Removing flag for EIP1559 V2 support (#16446) 2022-12-09 00:07:06 +05:30
preferences.test.js Move infuraProjectId to network controller constructor (#16884) 2022-12-13 12:09:21 -03:30
swaps.js
swaps.test.js