Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Version-v11.6.6: patch @metamask/selected-network-controller 12.0.1 #25046

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file not shown.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -327,7 +327,7 @@
"@metamask/rate-limit-controller": "^3.0.0",
"@metamask/safe-event-emitter": "^3.1.1",
"@metamask/scure-bip39": "^2.0.3",
"@metamask/selected-network-controller": "^12.0.1",
"@metamask/selected-network-controller": "patch:@metamask/selected-network-controller@npm%3A12.0.1#~/.yarn/patches/@metamask-selected-network-controller-npm-12.0.1-34b2edf62d.patch",
"@metamask/signature-controller": "^12.0.0",
"@metamask/smart-transactions-controller": "^10.0.1",
"@metamask/snaps-controllers": "patch:@metamask/snaps-controllers@npm%3A8.0.0#~/.yarn/patches/@metamask-snaps-controllers-npm-8.0.0-7e59688855.patch",
Expand Down
5 changes: 3 additions & 2 deletions ui/selectors/selectors.js
Original file line number Diff line number Diff line change
Expand Up @@ -1450,10 +1450,11 @@ export const getConnectedSitesListWithNetworkInfo = createDeepEqualSelector(
getConnectedSitesList,
getAllDomains,
getAllNetworks,
(sitesList, domains, networks) => {
getSelectedNetworkClientId,
(sitesList, domains, networks, selectedNetworkClientId) => {
Object.keys(sitesList).forEach((siteKey) => {
const connectedNetwork = networks.find(
(network) => network.id === domains[siteKey],
(network) => network.id === domains[siteKey] || selectedNetworkClientId,
);
// For the testnets, if we do not have an image, we will have a fallback string
sitesList[siteKey].networkIconUrl =
Expand Down
21 changes: 19 additions & 2 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -5590,7 +5590,7 @@ __metadata:
languageName: node
linkType: hard

"@metamask/selected-network-controller@npm:^12.0.1":
"@metamask/selected-network-controller@npm:12.0.1":
version: 12.0.1
resolution: "@metamask/selected-network-controller@npm:12.0.1"
dependencies:
Expand All @@ -5607,6 +5607,23 @@ __metadata:
languageName: node
linkType: hard

"@metamask/selected-network-controller@patch:@metamask/selected-network-controller@npm%3A12.0.1#~/.yarn/patches/@metamask-selected-network-controller-npm-12.0.1-34b2edf62d.patch":
version: 12.0.1
resolution: "@metamask/selected-network-controller@patch:@metamask/selected-network-controller@npm%3A12.0.1#~/.yarn/patches/@metamask-selected-network-controller-npm-12.0.1-34b2edf62d.patch::version=12.0.1&hash=808666"
dependencies:
"@metamask/base-controller": "npm:^5.0.1"
"@metamask/json-rpc-engine": "npm:^8.0.1"
"@metamask/network-controller": "npm:^18.1.0"
"@metamask/permission-controller": "npm:^9.0.2"
"@metamask/swappable-obj-proxy": "npm:^2.2.0"
"@metamask/utils": "npm:^8.3.0"
peerDependencies:
"@metamask/network-controller": ^18.0.0
"@metamask/permission-controller": ^9.0.0
checksum: 04471191561f4305b651bbefc5c6885eb26878fb24ee9ecf77f9a0f24367a33132453e6c1e8f315b8374fecbc0336eeb83a3043dfbbc3af1b2c13965a87383a0
languageName: node
linkType: hard

"@metamask/signature-controller@npm:^12.0.0":
version: 12.0.0
resolution: "@metamask/signature-controller@npm:12.0.0"
Expand Down Expand Up @@ -25121,7 +25138,7 @@ __metadata:
"@metamask/rate-limit-controller": "npm:^3.0.0"
"@metamask/safe-event-emitter": "npm:^3.1.1"
"@metamask/scure-bip39": "npm:^2.0.3"
"@metamask/selected-network-controller": "npm:^12.0.1"
"@metamask/selected-network-controller": "patch:@metamask/selected-network-controller@npm%3A12.0.1#~/.yarn/patches/@metamask-selected-network-controller-npm-12.0.1-34b2edf62d.patch"
"@metamask/signature-controller": "npm:^12.0.0"
"@metamask/smart-transactions-controller": "npm:^10.0.1"
"@metamask/snaps-controllers": "patch:@metamask/snaps-controllers@npm%3A8.0.0#~/.yarn/patches/@metamask-snaps-controllers-npm-8.0.0-7e59688855.patch"
Expand Down
Loading