April 7, 2023, 2:41pm
checking, after the recent update MM wont auto switch chain between dapps. Previously if i am in a dapp and use different chain, MM will auto conenct for me. Now i have to manually browse through all the network in MM each time which is a hassle. Is there any fix?
@sosour, this will be fixed soon in the next 10.28.2 update
April 7, 2023, 2:53pm
cool. Really need the auto switch back. and then all the ‘X’ beside the network and quite jarring to the eye. i just want a clear view of all the network in the list. Either make a UI change or remove it completely as i can just go to add network and remove the chain / rpc.
But good to hear the auto network switch will be back. Driving me crazy and i have search high and low in all the forum thinking its just me.
April 8, 2023, 5:42am
Updated MM to 10.28.2. The auto switch chain between dapps is still not working. Pls fix it. URGENT.
April 9, 2023, 3:19am
Checking why is it some chain or custom RPC is not able to auto switch? For the latest version, MM is able to switch automically between some default RPC. All the custom RPCs for other chain MM is not able to auto switch. Previous version before 10.28.1m MM is working fine. Please take a look and fix it. We have many custom RPC for other chains and it is a hassle with MM not able to auto link and switch to it.
@sosour, welcome to MetaMask community!
Team is aware of these issues and will fix them as soon as possible. Thank you for reporting it.
April 9, 2023, 3:19pm
Upgrading the wallet can’t automatically switch the network, it really broke me down, the network needs dozens of connections, and a manual switch is too troublesome
April 12, 2023, 8:07am
When is the chain switch bug going to be fixed? Not a priority for you all? I have been manually switching for days and about to switch to rabby.
There were still some errors persisting in 10.28.2, but it should all be fixed now in 10.28.3 soon.
See here for more info:
09:48AM - 08 Apr 23 UTC
We partially fixed the symptom of 18509 and 18453 with https://github.com/MetaMask/metamask-extension/pull/18483, but that fix was incomplete.
This bug will be experienced by anyone who added a network while on v10.27.0 or earlier, and are now on v10.28.1 or v10.28.2 and trying to confirm a dapp prompted switch to that network. This bug will not affect users who first added the network, via a dapp wallet_addEthereumChain request, while on v10.28.1 . This bug also won't affect users who added the network via the MetaMask UI in v10.28.1
The problem is that migration 82 did not add an `id` property to each network configuration object, but we assume that `id` property exists in the `switch-ethereum-chain.js` handler. If a user adds a network on version v10.27.0 or earlier, and then updates to v10.28.x, migration 82 will create an object within `NetworkController.networkConfigurations` keyed by a random id, but that `id` will not be added to that object itself. Later, when we attempt to switch to the network using that objects `id` property, it fails. It does not fail if the network is added while on v10.28.x, because the `upsertNetworkConfiguration` method, which is called when adding a network on v10.28.x, adds an `id` property to each network.
This PR corrects the problem with a migration that ensures that the each key within `networkConfigurations` is used to set the `id` property of the respective object.
This video shows what would happen when upgrading from v10.27.0 -> v10.28.2 and then trying to switch to a previously added network:
This shows switch network working after an upgrade from v10.27.0 to the branch of this PR:
## Manual Testing Steps
Do as is done in the above "After" video:
1. Build v10.27.0, from d8591d48c, install and onboard
2. Go to https://syncswap.xyz/, connect and add the suggested network
3. In MetaMask, select Ethereum Mainnet, so that the zkSync network is not selected
4. git checkout this branch, build and then reload the metamask installation that was previously built from v10.27.0
5. login to MetaMask and then go to https://syncswap.xyz/
6. click "Connect Wallet" and confirm the switch network popup
7. open MetaMask, you should now have the zksync network selected
## Pre-merge author checklist
- [ ] I've clearly explained:
- [ ] What problem this PR is solving
- [ ] How this problem was solved
- [ ] How reviewers can test my changes
- [ ] Sufficient automated test coverage has been added
## Pre-merge reviewer checklist
- [ ] Manual testing (e.g. pull and build branch, run in browser, test code being changed)
- [ ] PR is linked to the appropriate GitHub issue
- [ ] **IF** this PR fixes a bug in the release milestone, add this PR to the release milestone
If further QA is required (e.g. new feature, complex testing steps, large refactor), add the `Extension QA Board` label.
In this case, a QA Engineer approval will be be required.
Thank you for your understanding!
April 13, 2023, 3:44pm
looks like 10.28.3 is working. so far so good. hope it doesn’t break again!
May 7, 2023, 2:42pm
This topic was automatically closed after 25 days. New replies are no longer allowed.