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

erc721 suggestion transfer nft #111

Merged
merged 10 commits into from
Jun 30, 2021
Merged

Conversation

mrsmkl
Copy link
Contributor

@mrsmkl mrsmkl commented Jun 30, 2021

Description

Add a description of your changes here.

Is this PR related with an open issue?

Related to Issue #

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

  • Follows the code style of this project.
  • Tests Cover Changes
  • Documentation

Funny gif

Put a link of a funny gif inside the parenthesis-->

@mrsmkl mrsmkl requested review from a team as code owners June 30, 2021 12:19
contracts/conditions/NFTs/TransferNFT721Condition.sol Outdated Show resolved Hide resolved
contracts/conditions/NFTs/TransferNFT721Condition.sol Outdated Show resolved Hide resolved
);

require(
_nftAmount == 0 || (_nftAmount == 1 && token.ownerOf(uint256(_did)) == _nftHolder),
Copy link
Member

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?

Copy link
Contributor Author

@mrsmkl mrsmkl Jun 30, 2021

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...

contracts/conditions/NFTs/TransferNFTCondition.sol Outdated Show resolved Hide resolved
contracts/conditions/NFTs/TransferNFTCondition.sol Outdated Show resolved Hide resolved
@mrsmkl mrsmkl merged commit 57cb122 into feature/erc721 Jun 30, 2021
@mrsmkl mrsmkl deleted the mrsmkl/erc721-suggestions-more branch June 30, 2021 14:49
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.

None yet

2 participants