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

NFT Implementation simplification #321

Closed
wants to merge 1 commit into from
Closed

Conversation

volovyks
Copy link
Collaborator

@volovyks volovyks commented Dec 4, 2022

@ailisp deleted redundant interfaces (tell me, if we need them for some reason).

Copy link
Member

@ailisp ailisp left a comment

Choose a reason for hiding this comment

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

It's a code style problem, I think both your approach and mine works.

In rust, these trait are required and impl of the traits appear outside impl MyNFT. In ts it appears together in the class body, so implements XXXInterface is optional. However, I think it would be nice to explicitly write these interfaces so if you forget implement any of the method, e.g. NonFungibleTokenEnumeration.nft_total_supply(), tsc and vscode will gives you an error:
image

@volovyks
Copy link
Collaborator Author

volovyks commented Dec 5, 2022

Ok @ailisp , close it.
It will not be an issue if we will find a good way for composability.

@volovyks volovyks closed this Dec 5, 2022
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.

Helper class inheritance or code generation to quickly build standard contract
2 participants