-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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: Fall back to token list for the token symbol #28003
Conversation
CLA Signature Action: All authors have signed the CLA. You may need to manually re-run the blocking PR check if it doesn't pass in a few minutes. |
ec108b9
to
37a22d4
Compare
Builds ready [37a22d4]
Page Load Metrics (1909 ± 119 ms)
Bundle size diffs
|
return { tokenImage }; | ||
const tokenSymbol = | ||
selectedToken?.symbol || | ||
tokenList[transactionMeta?.txParams?.to as string]?.symbol || |
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.
Minor, worth extracting the to
into a contractAddress
variable?
transactionMeta: TransactionMeta, | ||
selectedToken: SelectedToken, | ||
) => { | ||
const t = useI18nContext(); | ||
|
||
const tokenList = useSelector(getTokenList) as TokenListMap; |
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.
One for future note but getTokenList
is derived from the global network where as I just added a selector to use tokensChainsCache
which is multi-chain compatible as it's a map of data per chain.
37a22d4
to
c679deb
Compare
Builds ready [c679deb]
Page Load Metrics (2682 ± 647 ms)
|
Missing release label release-12.6.0 on PR. Adding release label release-12.6.0 on PR and removing other release labels(release-12.7.0), as PR was cherry-picked in branch 12.6.0. |
Description
Related issues
Fixes: #27970
Manual testing steps
Screenshots/Recordings
Before
After
Pre-merge author checklist
Pre-merge reviewer checklist