-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Split AssetsController into TokensController and CollectiblesController #2881
Conversation
app/components/Views/Wallet/index.js
Outdated
}, | ||
...tokens | ||
} | ||
]; | ||
if (tokens && Array.isArray(tokens)) { | ||
assets = [...assets, ...tokens]; | ||
} |
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.
Is there a case where tokens
can be other than array
, null
, undefined
?
If not this would not be necessary and we can just change ...tokens
to ...(tokens || [])
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.
Yeah this wasn't meant to be included but your suggestion is safer than how it is now
20bb5ba
to
4698667
Compare
45bbf86
to
1113350
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.
LGTM
acc05c0
to
44f0fc9
Compare
44f0fc9
to
eb9ba92
Compare
eb9ba92
to
15c8055
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.
Changes LGTM.
…er (#2881) * Split AssetsController into TokensController and CollectiblesController * add back split in AssetDetectionController instantiation * add config to tokensController Co-authored-by: Ibrahim Taveras <[email protected]>
Description
Required changes to land the split AssetsController work (currently in PR) in the controllers repo.
Issue
MetaMask/core#516