-
Notifications
You must be signed in to change notification settings - Fork 5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: bump @metamsk/network-controller to 21.0.1
- Loading branch information
1 parent
7143c96
commit c7108fd
Showing
9 changed files
with
95 additions
and
56 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
33 changes: 0 additions & 33 deletions
33
.yarn/patches/@metamask-network-controller-npm-21.0.0-559aa8e395.patch
This file was deleted.
Oops, something went wrong.
35 changes: 35 additions & 0 deletions
35
.yarn/patches/@metamask-network-controller-npm-21.0.1-55b6d471c0.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
diff --git a/PATCH.txt b/PATCH.txt | ||
new file mode 100644 | ||
index 0000000000000000000000000000000000000000..ce3b18534f055ee00aa5821793f855fd300fb72c | ||
--- /dev/null | ||
+++ b/PATCH.txt | ||
@@ -0,0 +1,4 @@ | ||
+We remove lookupNetwork from initializeProvider in the network controller to prevent network requests before user onboarding is completed. | ||
+The network lookup is done after onboarding is completed, and when the extension reloads if onboarding has been completed. | ||
+This patch is part of a temporary fix that will be reverted soon to make way for a more permanent solution. https://github.com/MetaMask/metamask-extension/pull/23005 | ||
+You can see the changes before compilation on this branch: https://github.com/MetaMask/core/compare/pnf/ext-23622-review?expand=1 | ||
\ No newline at end of file | ||
diff --git a/dist/NetworkController.cjs b/dist/NetworkController.cjs | ||
index b85de6f29620feecf6f1e395f3d25c96fb10f204..68c894de3975ab917e8320b5937b19a9b3ddd4ca 100644 | ||
--- a/dist/NetworkController.cjs | ||
+++ b/dist/NetworkController.cjs | ||
@@ -408,7 +408,6 @@ class NetworkController extends base_controller_1.BaseController { | ||
*/ | ||
async initializeProvider() { | ||
__classPrivateFieldGet(this, _NetworkController_instances, "m", _NetworkController_applyNetworkSelection).call(this, this.state.selectedNetworkClientId); | ||
- await this.lookupNetwork(); | ||
} | ||
/** | ||
* Refreshes the network meta with EIP-1559 support and the network status | ||
diff --git a/dist/NetworkController.mjs b/dist/NetworkController.mjs | ||
index 966da694324513857dc6766590a4c965dedc2e3d..eb2fe95f9d77fa781d2bce97b7007d4676a3bede 100644 | ||
--- a/dist/NetworkController.mjs | ||
+++ b/dist/NetworkController.mjs | ||
@@ -383,7 +383,6 @@ export class NetworkController extends BaseController { | ||
*/ | ||
async initializeProvider() { | ||
__classPrivateFieldGet(this, _NetworkController_instances, "m", _NetworkController_applyNetworkSelection).call(this, this.state.selectedNetworkClientId); | ||
- await this.lookupNetwork(); | ||
} | ||
/** | ||
* Refreshes the network meta with EIP-1559 support and the network status |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
// eslint-disable-next-line import/no-extraneous-dependencies, node/no-extraneous-require | ||
const ethBlockTracker = require('@metamask/eth-block-tracker'); | ||
|
||
module.exports = { | ||
...ethBlockTracker, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
// eslint-disable-next-line import/no-extraneous-dependencies, node/no-extraneous-require | ||
const ethJsonRpcInfura = require('@metamask/eth-json-rpc-infura'); | ||
|
||
module.exports = { | ||
...ethJsonRpcInfura, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
// eslint-disable-next-line import/no-extraneous-dependencies, node/no-extraneous-require | ||
const ethJsonRpcMiddleware = require('@metamask/eth-json-rpc-middleware'); | ||
|
||
module.exports = { | ||
...ethJsonRpcMiddleware, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
// eslint-disable-next-line import/no-extraneous-dependencies, node/no-extraneous-require | ||
const swappablObjProxy = require('@metamask/swappable-obj-proxy'); | ||
|
||
module.exports = { | ||
...swappablObjProxy, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters