-
-
Notifications
You must be signed in to change notification settings - Fork 266
chore: bump snaps dependencies #7550
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
Conversation
|
Review the following changes in direct dependencies. Learn more about Socket for GitHub.
|
...es/assets-controllers/src/MultichainAssetsRatesController/MultichainAssetsRatesController.ts
Outdated
Show resolved
Hide resolved
| const assetMarketData = response.marketData?.[asset]?.[currency]; | ||
|
|
||
| // We do not consider NFTs here, so `fungible` must be `true`. | ||
| if (assetMarketData?.fungible) { | ||
| assetToMarketData[asset] = assetMarketData; | ||
| } else { | ||
| assetToMarketData[asset] = undefined; | ||
| } |
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.
OnAssetsMarketData now also include NFTs asset type. So we have to filter them out. Using if (assetMarketData?.fungible) is enough, since we use this boolean as a tag to disambiguate both data structures (NFT vs fungible tokens).
cc @MetaMask/metamask-assets
Explanation
Bumping all
@metamask/snaps-*packages to match the latest versions (that are already in-use on both clients)References
N/A
Checklist
Note
Updates dependency stack to align with latest Snaps ecosystem.
@metamask/snaps-controllersto^17.2.0,@metamask/snaps-sdkto^10.3.0, and@metamask/snaps-utilsto^11.7.0across packages (accounts, account-tree, assets, bridge, bridge-status, gator-permissions, multichain-account-service, multichain-transactions, profile-sync)@metamask/providers@^22.1.1,@metamask/rpc-errors@^7.0.3,@metamask/phishing-controller@^15.0.1,@metamask/snaps-registry@^4.0.0,@metamask/snaps-rpc-methods@^14.1.1, andses@^1.14.0MultichainAssetsRatesController.ts: map market data only whenfungibleis true, excluding NFTsWritten by Cursor Bugbot for commit 55e4128. This will update automatically on new commits. Configure here.