-
Notifications
You must be signed in to change notification settings - Fork 41
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
Add showFungible option flag to das #215
Add showFungible option flag to das #215
Conversation
Nagaprasadvr
commented
Nov 14, 2024
•
edited by kespinola
Loading
edited by kespinola
- add showFungible flag to options which will be used by getAsset, getAssetsByOwner etc
- impl showFungible - match assets which are either fungibleToken or fungibleAsset
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.
Needs integration test.
...ts/integration_tests__show_fungible_flag_tests__get_asset_with_show_fungible_scenario_1.snap
Outdated
Show resolved
Hide resolved
integration_tests/tests/integration_tests/show_fungible_flag_tests.rs
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.
LGTM
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.
This LGTM. After I approve everything I'm also going to ask Helius to take a look at all these before we merge them into main. It might be good to just combine 214 and 215 in some way so that same content needs to be reviewed twice by them.
Or maybe its just as simple as I will let them know 214 already contained in 215.
b1de06c
to
e436a14
Compare
asset_data.one(conn).await.and_then(|o| match o { | ||
Some((a, d)) => Ok((a, d)), | ||
Some((a, Some(d))) => Ok((a, d)), |
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.
This change now enforces that DAS will only return an asset when its metadata data info is also available. For fungibles this means DAS will return not fund unless the mint has associated metadata account , metadata pointer (for token extensions), core single account asset.
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.
related to #231
9d8818d
to
a72b496
Compare
a72b496
to
5aaf576
Compare