Crash when fetching NFT metadata #41829
Labels
crash
feature/web3/wallet/core
feature/web3/wallet
Integrating Ethereum+ wallet support
OS/Desktop
QA/No
release-notes/exclude
Milestone
Description
Reported by @nuo-xu
i'm experiencing a mojom crash for fetching metadata using simplehash.
the api is supposed to return an array of NftMetadata
https://github.com/brave/brave-core/blob/25ddfaf2f0d78108e0610cd2fba4ee348d2c0809/components/brave_wallet/common/brave_wallet.mojom#L1738
but sometimes it returns an array of optional NftMetadata
for example, im getting an size of 5 array but some of them are nullptr
The API should probably change to return a list of optional NFT metdatas.
Steps to reproduce
Call GetNftMetadatas with these params
Actual result
Crash
Expected result
Return a list of optional NFTs
Reproduces how often
Easily reproduced
Brave version (brave://version info)
1.71.114 Chromium: 130.0.6723.58 (Official Build) (64-bit)
Channel information
Reproducibility
Miscellaneous information
No response
The text was updated successfully, but these errors were encountered: