Skip to content

Commit

Permalink
πŸ› Fix class filter doesn't includes all creators bug (#1262)
Browse files Browse the repository at this point in the history
  • Loading branch information
WeiJun0827 authored Jul 31, 2023
1 parent 2ed14ab commit 84025af
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/store/modules/nft.js
Original file line number Diff line number Diff line change
Expand Up @@ -494,13 +494,19 @@ const actions = {
uri,
parent,
metadata: classMetadata = {},
// HACK: owner field only exists in /likechain/likenft/v1/class endpoint,
// not in /cosmos/nft/v1beta1/classes/:classId endpoint.
// Should be removed after ISCN data refactor
// eslint-disable-next-line camelcase
owner: iscn_owner,
} = classData;
const formattedMetadata = {
name,
description,
uri,
...classMetadata,
parent,
iscn_owner, // overwrite iscn_owner field of classMetadata
};
commit(TYPES.NFT_SET_NFT_CLASS_METADATA, {
classId,
Expand Down

0 comments on commit 84025af

Please sign in to comment.