-
Notifications
You must be signed in to change notification settings - Fork 2
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
erc721 suggestion transfer nft #111
Conversation
…ntracts into mrsmkl/erc721-suggestions
…ntracts into mrsmkl/erc721-suggestions
); | ||
|
||
require( | ||
_nftAmount == 0 || (_nftAmount == 1 && token.ownerOf(uint256(_did)) == _nftHolder), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
makes sense _nftAmount==0
? What would be the condition requiring an amount of 0 NFTs for transferring?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
not really, I'll check if ERC1155 safe transfer allows zero value
Edit: to have the same behaviour as the ERC1155 one, it should be noop with amount 0. But a check could be added to other contract...
Description
Add a description of your changes here.
Is this PR related with an open issue?
Related to Issue #
Types of changes
Checklist:
Funny gif