diff --git a/app/scripts/metamask-controller.js b/app/scripts/metamask-controller.js index 2ff48e689ce3..eadc68aa38e9 100644 --- a/app/scripts/metamask-controller.js +++ b/app/scripts/metamask-controller.js @@ -5984,16 +5984,6 @@ export default class MetamaskController extends EventEmitter { outStream, (err) => { // handle any middleware cleanup - // TODO: is this needed or does the middleware destory chain handle this? - this.multichainMiddlewareManager.removeMiddlewareByOriginAndTabId( - origin, - tabId, - ); - // TODO: is this needed or does the middleware destory chain handle this? - this.multichainSubscriptionManager.unsubscribeByOriginAndTabId( - origin, - tabId, - ); engine.destroy(); connectionId && this.removeConnection(origin, connectionId); // For context and todos related to the error message match, see https://github.com/MetaMask/metamask-extension/issues/26337 diff --git a/package.json b/package.json index 85240e9af5a1..b068b1d54ae7 100644 --- a/package.json +++ b/package.json @@ -325,7 +325,7 @@ "@metamask/message-manager": "^11.0.0", "@metamask/message-signing-snap": "^0.4.0", "@metamask/metamask-eth-abis": "^3.1.1", - "@metamask/multichain": "npm:@metamask-previews/multichain@1.1.0-preview-944be534", + "@metamask/multichain": "npm:@metamask-previews/multichain@1.1.0-preview-57e6ab5d", "@metamask/name-controller": "^8.0.0", "@metamask/network-controller": "patch:@metamask/network-controller@npm%3A21.0.0#~/.yarn/patches/@metamask-network-controller-npm-21.0.0-559aa8e395.patch", "@metamask/notification-services-controller": "^0.14.0", diff --git a/yarn.lock b/yarn.lock index 271185ae087f..4da63f0216e1 100644 --- a/yarn.lock +++ b/yarn.lock @@ -4102,20 +4102,13 @@ __metadata: languageName: node linkType: hard -"@json-schema-tools/traverse@npm:^1.10.4": +"@json-schema-tools/traverse@npm:^1.10.4, @json-schema-tools/traverse@npm:^1.7.5, @json-schema-tools/traverse@npm:^1.7.8": version: 1.10.4 resolution: "@json-schema-tools/traverse@npm:1.10.4" checksum: 10/0027bc90df01c5eeee0833e722b7320b53be8b5ce3f4e0e4a6e45713a38e6f88f21aba31e3dd973093ef75cd21a40c07fe8f112da8f49a7919b1c0e44c904d20 languageName: node linkType: hard -"@json-schema-tools/traverse@npm:^1.7.5, @json-schema-tools/traverse@npm:^1.7.8": - version: 1.10.3 - resolution: "@json-schema-tools/traverse@npm:1.10.3" - checksum: 10/690623740d223ea373d8e561dad5c70bf86461bcedc5fc45da01c87bcdf3284bbdbad3006d4a423f8d82e4b2d4580e45f92c0b272f006024fb597d7f01876215 - languageName: node - linkType: hard - "@juggle/resize-observer@npm:^3.3.1": version: 3.4.0 resolution: "@juggle/resize-observer@npm:3.4.0" @@ -5825,9 +5818,9 @@ __metadata: languageName: node linkType: hard -"@metamask/multichain@npm:@metamask-previews/multichain@1.1.0-preview-944be534": - version: 1.1.0-preview-944be534 - resolution: "@metamask-previews/multichain@npm:1.1.0-preview-944be534" +"@metamask/multichain@npm:@metamask-previews/multichain@1.1.0-preview-57e6ab5d": + version: 1.1.0-preview-57e6ab5d + resolution: "@metamask-previews/multichain@npm:1.1.0-preview-57e6ab5d" dependencies: "@metamask/api-specs": "npm:^0.10.12" "@metamask/controller-utils": "npm:^11.4.3" @@ -5841,7 +5834,7 @@ __metadata: peerDependencies: "@metamask/network-controller": ^22.0.0 "@metamask/permission-controller": ^11.0.0 - checksum: 10/5392f48f3866ebff3bf04b60de5405e3cb4db9ca8f536408a3d6f708de8db5ba1c6e2f57faa9a1587fd9ab5431d83243ea7dcd3b3839fe4e4b4f676a59722533 + checksum: 10/2ffd8972f2ed0b30ff3c0300e5bf3cc1f49050a3f71dfb7cfa0ffdf4554d5dc19475f607118bcca7155474af022a057ea281a753b44fbbd27cb17be816bbbf60 languageName: node linkType: hard @@ -26623,7 +26616,7 @@ __metadata: "@metamask/message-manager": "npm:^11.0.0" "@metamask/message-signing-snap": "npm:^0.4.0" "@metamask/metamask-eth-abis": "npm:^3.1.1" - "@metamask/multichain": "npm:@metamask-previews/multichain@1.1.0-preview-944be534" + "@metamask/multichain": "npm:@metamask-previews/multichain@1.1.0-preview-57e6ab5d" "@metamask/name-controller": "npm:^8.0.0" "@metamask/network-controller": "patch:@metamask/network-controller@npm%3A21.0.0#~/.yarn/patches/@metamask-network-controller-npm-21.0.0-559aa8e395.patch" "@metamask/notification-services-controller": "npm:^0.14.0"