-
-
Notifications
You must be signed in to change notification settings - Fork 266
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
EVM poisoning vol. 2 #10034
EVM poisoning vol. 2 #10034
Conversation
44f229f
to
a6c8a75
Compare
suite-common/wallet-core/src/tokenDefinitions/tokenDefinitionsActions.ts
Outdated
Show resolved
Hide resolved
...e/modals/ReduxModal/UserContextModal/TxDetailModal/AdvancedTxDetails/IODetails/IODetails.tsx
Show resolved
Hide resolved
6ae7d78
to
1d763fb
Compare
1d763fb
to
36a596d
Compare
|
||
isTokenKnown = fetchedTokenDefinition.ok; | ||
|
||
dispatch( |
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.
Don't create extra actions for success/fail thunks. RTK has built-in support for these https://redux-toolkit.js.org/api/createAsyncThunk#examples and https://redux-toolkit.js.org/api/createAsyncThunk#handling-thunk-errors
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.
...uite/src/components/suite/modals/ReduxModal/UserContextModal/TxDetailModal/TxDetailModal.tsx
Outdated
Show resolved
Hide resolved
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.
Small things, otherwise looks good to me.
suite-common/wallet-core/src/token-definitions/tokenDefinitionsReducer.ts
Outdated
Show resolved
Hide resolved
suite-common/wallet-core/src/token-definitions/tokenDefinitionsReducer.ts
Outdated
Show resolved
Hide resolved
packages/suite/src/views/wallet/tokens/components/TokenList.tsx
Outdated
Show resolved
Hide resolved
suite-common/wallet-core/src/token-definitions/tokenDefinitionsThunk.ts
Outdated
Show resolved
Hide resolved
36a596d
to
2c3b912
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.
Perfect 👍
0af5c01
to
32c6199
Compare
suite-common/wallet-core/src/token-definitions/tokenDefinitionsThunks.ts
Show resolved
Hide resolved
4a46be2
to
ff9e384
Compare
Description
updateSelectedAccount
Related Issue
Resolves #8119
Resolves #10783
Resolves #8007 I slightly refactored the logic, it cannot be part of tx as we need to fetch token definitions first
Resolves #11037
Resolves #11040
Screenshots: