-
-
Notifications
You must be signed in to change notification settings - Fork 268
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): token definitions redux logic #11318
Conversation
suite-native/module-accounts-import/src/components/AccountImportSummaryForm.tsx
Show resolved
Hide resolved
suite-common/wallet-core/src/token-definitions/tokenDefinitionsSelectors.ts
Show resolved
Hide resolved
suite-native/token-definitions/src/tokenDefinitionsMiddleware.ts
Outdated
Show resolved
Hide resolved
suite-native/module-accounts-import/src/screens/AccountImportLoadingScreen.tsx
Show resolved
Hide resolved
suite-native/module-accounts-import/src/screens/AccountImportLoadingScreen.tsx
Show resolved
Hide resolved
action.payload.tokens?.forEach(token => { | ||
const contractAddress = token.contract; | ||
|
||
const tokenDefinition = selectSpecificTokenDefinition( |
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.
What about creating selector selectShouldFetchTokenDefinion
?
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.
fixed by cd98e01
suite-native/token-definitions/src/tokenDefinitionsMiddleware.ts
Outdated
Show resolved
Hide resolved
suite-native/token-definitions/src/tokenDefinitionsMiddleware.ts
Outdated
Show resolved
Hide resolved
6cf5d4c
to
cd98e01
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.
🚀
a017a0f
to
ed01969
Compare
/rebase |
ed01969
to
7b523ea
Compare
Description
Related Issue
Closes #8434
Closes #11308
Screenshots:
Token definitions are correctly handled in the redux state, app works as expected: