-
Notifications
You must be signed in to change notification settings - Fork 5.4k
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 safeTransferFrom description #2401
Comments
Here the standard includes the actual implementation detail ("code size > 0") directly in the documentation. (Why did they do that!?) So the change will not be compatible. There's two ways to do this:
We have not had a problem with changing EIPs in the past if the change is non-normative (i.e. does not change the prescription) (*cough* 165 *cough*) but here it does. I would actually support a new EIP for this. It's brief but it's definitely a new thing. |
Thanks for the chat with @frangio who helped me realize this change is technically still compliant with the literal wording of the standard. (Programmers are lawyers!) Therefore an amendment or new EIP is not necessary. Right now we have a comment on the main thread and test cases are requested in the reference implementation. Sent them to you @MoMannn! But also appreciate if OpenZeppelin team could help too. Perhaps after test cases are merged (with OZ review) then we could consider this issue closed. |
@fulldecent Will jump on it when I find the time :) |
There has been no activity on this issue for two months. It will be closed in a week if no further activity occurs. If you would like to move this EIP forward, please respond to any outstanding feedback or add a comment indicating that you have addressed all required feedback and are ready for a review. |
This issue was closed due to inactivity. If you are still pursuing it, feel free to reopen it and respond to any feedback or request a review in a comment. |
In the ERC721 specification for
safeTransferFrom
method the@dev
description is written as:The way to check for if
_to
is a smart contract can result in a false result if the smart contract is in the process of deploying . Since EIP-1052 there is a better way to check if an address is a smart contract (withcodehash
). I propose the description gets updated to reflect this or change the wording that this is clear.The 0xcert and OpenZeppelin implementations already addressed this.
References:
The text was updated successfully, but these errors were encountered: