Skip to content

Commit

Permalink
Add description field to ownedTokens (#510)
Browse files Browse the repository at this point in the history
  • Loading branch information
sainthiago authored May 13, 2024
1 parent cb2e5fe commit c4453db
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions packages/data/src/api/ownedTokens/ownedTokens.query.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ query ${QUERY_OPS_PREFIX}_getOwnedTokens(
baseUri: base_uri
metadataId: metadata_id
title
description
minter
media
document: reference_blob(path: "$.document")
Expand Down
2 changes: 1 addition & 1 deletion packages/data/src/api/ownedTokens/ownedTokens.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export const ownedTokens = async (
...(network && { network:network }),
});

const errorMsg = error ? `Error fetching token listing counts, ${error}` : undefined;
const errorMsg = error ? `Error fetching ownedTokens, ${error}` : undefined;

return parseData<Token[]>(data?.tokens, error, errorMsg);

Expand Down
1 change: 1 addition & 0 deletions packages/data/src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ export type Token = {
baseUri: string;
metadataId: string;
title: string;
description: string;
minter: string;
media: string;
document: string;
Expand Down

0 comments on commit c4453db

Please sign in to comment.