-
Notifications
You must be signed in to change notification settings - Fork 5.1k
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
fix: swap src token balance on multichain network #30622
Merged
Merged
Conversation
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
micaelae
commented
Feb 27, 2025
} | ||
networkProps={{ | ||
network: fromChain, | ||
networks: isSwap ? undefined : fromChains, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Main change here is to pass undefined networks
bc user shouldn't be able to select from a list anyway
micaelae
commented
Feb 27, 2025
allNetworks[currentChainId as keyof typeof allNetworks]; | ||
const currentNetwork = useMultichainSelector(getMultichainCurrentNetwork); | ||
const selectedNetwork = networkProps?.network ?? currentNetwork_; | ||
const currentNetworkProviderConfig = useMultichainSelector( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Renaming variables here
ghgoodreau
approved these changes
Feb 27, 2025
ghgoodreau
previously approved these changes
Feb 27, 2025
ejwessel
previously approved these changes
Feb 27, 2025
GustavoRSSilva
previously approved these changes
Feb 27, 2025
darkwing
previously approved these changes
Feb 27, 2025
Builds ready [5681b23]
Page Load Metrics (1706 ± 145 ms)
Bundle size diffs
|
Builds ready [cde531e]
Page Load Metrics (1518 ± 37 ms)
Bundle size diffs
|
2233b98
darkwing
approved these changes
Feb 27, 2025
ghgoodreau
approved these changes
Feb 27, 2025
GustavoRSSilva
approved these changes
Feb 27, 2025
Builds ready [2233b98]
Page Load Metrics (1651 ± 52 ms)
Bundle size diffs
|
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Labels
release-12.15.0
Issue or pull request that will be included in release 12.15.0
team-swaps-and-bridge
Team swaps and bridge
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
Changes include
Related issues
Fixes: N/A
Manual testing steps
Screenshots/Recordings
Before
After
Pre-merge author checklist
Pre-merge reviewer checklist