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

research: how to get another contract's code id / how to approve contract with admin in cw721 #303

Open
loloicci opened this issue May 22, 2023 · 0 comments

Comments

@loloicci
Copy link
Contributor

In cw721 (https://github.com/CosmWasm/cw-nfts/blob/main/packages/cw721/README.md), users can approve that some contracts operate some tokens. But the admin of a specified contract can change the contract code (logic) by migrating the contract. In other words, approving a contract to operate a token by its logic means approving the owner to operate a token at their will by migration.

So,

  • if a contract can get another contract's code id info, make cw721 to approve (contract address, code id) instead of contract address.
  • If contracts cannot get the code id of another contract, consider how to solve it
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

1 participant