Skip to content

Commit

Permalink
refactor: Update core controllers (v45)
Browse files Browse the repository at this point in the history
Update core controllers to match the v45 monorepo release. The network
controller has been updated to v7, and the assets controllers have been
updated to v5.1.0.

The phishing controller and message manager updates have been held back
to reduce the scope of the PR. They will be updated in a later PR.

Release notes: https://github.com/MetaMask/core/releases/tag/v45.0.0

This relates to MetaMask/mobile-planning#877
  • Loading branch information
Gudahtt committed Jul 27, 2023
1 parent 499481a commit 892a5ba
Show file tree
Hide file tree
Showing 5 changed files with 93 additions and 163 deletions.
4 changes: 2 additions & 2 deletions app/core/Engine.ts
Original file line number Diff line number Diff line change
Expand Up @@ -132,8 +132,8 @@ class Engine {
};

const networkController = new NetworkController(networkControllerOpts);
// This still needs to be set because it has the side-effect of initializing the provider
networkController.providerConfig = {};
networkController.initializeProvider();

const assetsContractController = new AssetsContractController({
onPreferencesStateChange: (listener) =>
preferencesController.subscribe(listener),
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@
"@keystonehq/ur-decoder": "^0.6.1",
"@metamask/address-book-controller": "^2.0.0",
"@metamask/approval-controller": "^3.4.0",
"@metamask/assets-controllers": "~5.0.1",
"@metamask/assets-controllers": "^5.1.0",
"@metamask/base-controller": "^2.0.0",
"@metamask/composable-controller": "^2.0.0",
"@metamask/contract-metadata": "^2.1.0",
Expand All @@ -164,7 +164,7 @@
"@metamask/etherscan-link": "^2.0.0",
"@metamask/gas-fee-controller": "^4.0.0",
"@metamask/keyring-controller": "^1.0.1",
"@metamask/network-controller": "^6.0.0",
"@metamask/network-controller": "^7.0.0",
"@metamask/permission-controller": "^4.0.1",
"@metamask/phishing-controller": "^3.0.0",
"@metamask/preferences-controller": "^3.0.0",
Expand Down
Loading

0 comments on commit 892a5ba

Please sign in to comment.