Skip to content
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 showCollectionMetadata option to view collection_metadata in rpc responce #217

Open
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

AhzamAkhtar
Copy link

@AhzamAkhtar AhzamAkhtar commented Nov 15, 2024

Functions that now supports showCollectionMetadata option -

  • getAsset
  • getAssets
  • getAssetByOwner
  • getAssetByCreator
  • getAssetByAuthority
  • getAssetByGroup
  • searchAssets
  • test

Copy link
Collaborator

@kespinola kespinola left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This needs an integration test @AhzamAkhtar

digital_asset_types/src/dao/scopes/asset.rs Outdated Show resolved Hide resolved
{
"group_key": "collection",
"group_value": "J1S9H3QjnRtBbbuD4HjPV6RpRhwuk4zKbxsnCHuTgh9w",
"collection_metadata": {}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't there be collection metadata here?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It should but the metadata json uri isn't being fetched. Is there a helper in specs for fetching this? Can spoof it by writing info to the db so can be looked up by the API call.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants