From 84025afa81a6c854a488ac1d9f2c9edf9ebf6738 Mon Sep 17 00:00:00 2001 From: Wei-Jun Hung <33746295+WeiJun0827@users.noreply.github.com> Date: Mon, 31 Jul 2023 15:26:33 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20Fix=20class=20filter=20doesn't?= =?UTF-8?q?=20includes=20all=20creators=20bug=20(#1262)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/store/modules/nft.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/store/modules/nft.js b/src/store/modules/nft.js index bb799e3bb..8122a4f76 100644 --- a/src/store/modules/nft.js +++ b/src/store/modules/nft.js @@ -494,6 +494,11 @@ 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, @@ -501,6 +506,7 @@ const actions = { uri, ...classMetadata, parent, + iscn_owner, // overwrite iscn_owner field of classMetadata }; commit(TYPES.NFT_SET_NFT_CLASS_METADATA, { classId,