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

If someone else deploys an nft code, how should I verify that his nft code is from the cw-nfts specification? #129

Open
99Kies opened this issue Jun 26, 2023 · 3 comments

Comments

@99Kies
Copy link

99Kies commented Jun 26, 2023

If someone else deploys an nft code, how should I verify that his nft code is from the cw-nfts specification?

@taitruong
Copy link
Collaborator

Not sure what exactly u mean. But you can query for contract's code id (e.g. starsd query wasm contract CONTRACT_ADDR), then query for code info (e.g. starsd query wasm code-info CODE_ID). Here it returns data_hash. Now you can build cw721-base contract - which then returns data hash. This way you can check whether it uses cw721-base contract.

@99Kies
Copy link
Author

99Kies commented Jun 28, 2023

@taitruong In fact, I would like to discuss whether there is a concept of inheritance on cosmwasm.

like solidity.

contract XXXXX is IERC721 {}

@taitruong
Copy link
Collaborator

@taitruong In fact, I would like to discuss whether there is a concept of inheritance on cosmwasm.

like solidity.

contract XXXXX is IERC721 {}

You can easily extend cw721-base. Examples here:

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

No branches or pull requests

2 participants