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

💄 Display owner's listing NFT #11

Merged
merged 1 commit into from
Jan 18, 2023
Merged

💄 Display owner's listing NFT #11

merged 1 commit into from
Jan 18, 2023

Conversation

WeiJun0827
Copy link
Contributor

No description provided.

Comment on lines 76 to 81
const ownedList = await queryOwnedNFTClasses(wallet.value);
ownedList.forEach((n) => {
ownedMap.value[makeKey(n.classId, n.id)] = n;
});

const listingEvents = await getRecentListingEvents(wallet.value);
Copy link
Member

Choose a reason for hiding this comment

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

Can be Promise.all?

Comment on lines 76 to 81
const ownedList = await queryOwnedNFTClasses(wallet.value);
ownedList.forEach((n) => {
ownedMap.value[makeKey(n.classId, n.id)] = n;
});

const listingEvents = await getRecentListingEvents(wallet.value);
Copy link
Member

Choose a reason for hiding this comment

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

Can we use https://github.com/likecoin/likecoin-chain-tx-indexer/pull/64#issue-1508273452 instead? Using the current create_listing query we actually don't know if the listing is already bought or still valid

@WeiJun0827 WeiJun0827 merged commit 828a874 into likecoin:master Jan 18, 2023
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.

2 participants