Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

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

[Bug]: NFT Query does not work if original value is put in NFT.Data #17206

Closed
Senna46 opened this issue Jul 31, 2023 · 2 comments
Closed

[Bug]: NFT Query does not work if original value is put in NFT.Data #17206

Senna46 opened this issue Jul 31, 2023 · 2 comments
Labels

Comments

@Senna46
Copy link

Senna46 commented Jul 31, 2023

Summary of Bug

UnUniFi added a field (NFTData) to the sdk's NFT.Data that disables NFT Transfer.
https://github.com/UnUniFi/chain/blob/nft-transfer-disable/x/nft/types/nft.pb.go#L27-29

Data is null at first, but if I put NFTData here, the query does not work...

 % ununifid q nft nft ununifi-1AFC3C85B52311F13161F724B284EF900458E3B3 a01
Error: unable to resolve type URL /ununifi.nft.NftData

Can you change the sdk query to resolve this? Also, let me know if this is this type registration issue.

Version

https://github.com/cosmos/cosmos-sdk/tree/v0.47.3

Steps to Reproduce

Execute NFT Query in a situation where NFT.Data contains a specific value.

@Senna46 Senna46 added the T:Bug label Jul 31, 2023
@Senna46
Copy link
Author

Senna46 commented Jul 31, 2023

@dreamer-zq Please check if you have time.
Let me know if anyone else knows about this.

@facundomedica
Copy link
Member

Did you try registering the type in the codec? Moving this to a discussion as I don't think it's a bug

@cosmos cosmos locked and limited conversation to collaborators Jul 31, 2023
@facundomedica facundomedica converted this issue into discussion #17208 Jul 31, 2023

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
Projects
None yet
Development

No branches or pull requests

2 participants