fix: mm infinite switch chain loop #7719
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
Fixes a regression introduced in https://github.com/shapeshift/web/pull/7697/files#diff-ae33f6e4021508ebc3b64c4a8885e8ab7332e8ef8fda4b21ed5bc1961db38e88 - we absolutely do not want to
ethSwitchChain()
on every getAddress() calls, assubscribeTxs()
and a few other places will call it with various chainIds.Issue (if applicable)
closes #7718
Risk
None, reverts offending line to previous behaviour.
Testing
Engineering
Operations
Screenshots (if applicable)
jam.dev/c/59860845-5b28-4185-a792-56b540a07156
https://jam.dev/c/aad4c72a-b1f5-4c4b-882a-a26f55f1db9d