-
Notifications
You must be signed in to change notification settings - Fork 58
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(wallet): attempt to re-fetch tokenMetadata/nftMetadata if provid… #464
feat(wallet): attempt to re-fetch tokenMetadata/nftMetadata if provid… #464
Conversation
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.
Looks good!
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.
Nice work! Just a small change request for debug message
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.
Great work @mirceahasegan 🚀
147b1d0
to
2800f9c
Compare
PR #466 must be merged before this one. |
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.
PR #466 must be merged before this one.
Otherwise, nonNFT assets will poll forever because cardano-services returns undefined nftMetadata
Context
AssetInfo tokenMetadata/nftMetadata undefined means that the metadata could not be fetched.
We should still emit the partial AssetInfo, but also refetch refetch the metadata until it is successfully retrieved.
Proposed Solution
coldObservableProvider
withpollUntil
, enabling it to retry until the condition is met.AssetsService
willpollUntil
AssetInfo tokenMetadata and nftMetadata are either null or definedImportant Changes Introduced