Skip to content

Remove redundant modifiers from ERC721 safeTransferFrom (#1029)#1030

Merged
nventuro merged 1 commit into
OpenZeppelin:masterfrom
abandeali1:fix/erc721-modifiers-#1029
Jul 20, 2018
Merged

Remove redundant modifiers from ERC721 safeTransferFrom (#1029)#1030
nventuro merged 1 commit into
OpenZeppelin:masterfrom
abandeali1:fix/erc721-modifiers-#1029

Conversation

@abandeali1

Copy link
Copy Markdown
Contributor

Fixes #1029

🚀 Description

Removes modifiers from ERC721BasicToken.sol. onlyOwnerOf was not actually being used, and canTransfer has been removed for efficiency reasons.

  • 📘 I've reviewed the OpenZeppelin Contributor Guidelines
  • ✅ I've added tests where applicable to test my new functionality.
  • 📖 I've made sure that my contracts are well-documented.
  • 🎨 I've run the JS/Solidity linters and fixed any issues (npm run lint:all:fix).

@abandeali1 abandeali1 changed the title Remove redundant modifiers from safeTransferFrom (#1029) Remove redundant modifiers from ERC721 safeTransferFrom (#1029) Jun 19, 2018

@frangio frangio left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Thanks @abandeali1! I think this is an acceptable optimization.

@nventuro nventuro merged commit d20d03c into OpenZeppelin:master Jul 20, 2018
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.

Redundant modifiers in ERC721 safeTransferFrom

3 participants