-
-
Notifications
You must be signed in to change notification settings - Fork 275
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
feat(suite-native): make token selectors network agnostic #14633
Conversation
e5a5b55
to
6a6f55a
Compare
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.
just few nits
{ size: 500 }, | ||
); | ||
|
||
export const selectAccountOrTokenAccountTransactions = ( |
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.
Name is strange, it returns only transactions. Something like selectAccountTokenTransactions
is more clear
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.
It returns either all txns for whole account (eg. eth + tokens)or only for some token (usdc on eth)
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.
isTransactionWithTokenTransfers(transaction)), | ||
), | ||
) as WalletAccountTransaction[], | ||
{ size: 500 }, |
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.
I don't think there will be 500 accounts
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.
), | ||
), | ||
) as WalletAccountTransaction[], | ||
{ size: 500 }, |
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.
I don't think we need such a big number, something like 50 will be also fine there because there won't more than one mounted instance of component that uses this selector
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.
👍 Will change. I kept the number from renamed and moved ethereum selector.
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.
Also E2E seems to fail |
/rebase |
Start rebasing: https://github.com/trezor/trezor-suite/actions/runs/11133164772 |
e8dde21
to
1c2056e
Compare
@STew790 Please test, that everything works as before:
|
QA OK
Info |
This PR does not touch any UI so far, only contains changes for working with tokens.
Related Issue
Part of #14196
Screenshots:
Simulator.Screen.Recording.-.iPhone.15.Pro.-.2024-09-30.at.22.24.56.mp4